Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -1442,8 +1442,12 @@ |
1443 | 1443 | } |
1444 | 1444 | |
1445 | 1445 | if ( wfIsWindows() ) { |
1446 | | - // Escaping for an MSVC-style command line parser |
1447 | | - // Ref: http://mailman.lyra.org/pipermail/scite-interest/2002-March/000436.html |
| 1446 | + // Escaping for an MSVC-style command line parser and CMD.EXE |
| 1447 | + // Refs: |
| 1448 | + // * http://web.archive.org/web/20020708081031/http://mailman.lyra.org/pipermail/scite-interest/2002-March/000436.html |
| 1449 | + // * http://technet.microsoft.com/en-us/library/cc723564.aspx |
| 1450 | + // * Bug #13518 |
| 1451 | + // * CR r63214 |
1448 | 1452 | // Double the backslashes before any double quotes. Escape the double quotes. |
1449 | 1453 | $tokens = preg_split( '/(\\\\*")/', $arg, -1, PREG_SPLIT_DELIM_CAPTURE ); |
1450 | 1454 | $arg = ''; |