Skip to content

Commit c91081d

Browse files
mattnchrisbra
authored andcommitted
patch 9.2.0281: tests: Test_netrw_FileUrlEdit.. fails on Windows
Problem: tests: Test_netrw_FileUrlEdit.. fails on Windows (after 3e60f03) Solution: Skip the test on Windows (Yasuhiro Matsumoto). The Test_netrw_FileUrlEdit_pipe_injection() test fails on Windows with E303 because '|' is not a valid filename character on Windows. Since the pipe character cannot appear in a Windows filename, the command injection vector this test guards against does not apply on Windows. closes: #19890 Signed-off-by: Yasuhiro Matsumoto <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 7088926 commit c91081d

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/testdir/test_plugin_netrw.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ func Test_netrw_hostname()
596596
endfunc
597597

598598
func Test_netrw_FileUrlEdit_pipe_injection()
599+
CheckUnix
599600
CheckExecutable id
600601
let fname = 'Xtestfile'
601602
let url = 'file:///tmp/file.md%7C!id>'..fname

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ static char *(features[]) =
734734

735735
static int included_patches[] =
736736
{ /* Add new patch number below this line */
737+
/**/
738+
281,
737739
/**/
738740
280,
739741
/**/

0 commit comments

Comments
 (0)