r63213 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r63212
|
r63213
|
r63214
>
Date:
18:18, 3 March 2010
Author:
platonides
Status:
reverted
Tags:
Comment:
Escape the caret under Windows, since that's a special character for cmd shell.
Bug 13518
- <math> does not work (wrong shell escaping under Windows)
Modified paths:
/trunk/phase3/includes/Math.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/Math.php
—
—
@@ -67,7 +67,7 @@
68
68
69
69
if ( wfIsWindows() ) {
70
70
# Invoke it within cygwin sh, because texvc expects sh features in its default shell
71
- $cmd = 'sh -c ' . wfEscapeShellArg( $cmd );
71
+ $cmd = 'sh -c ' . wfEscapeShellArg( str_replace( "^", "^^", $cmd ) );
72
72
}
73
73
74
74
wfDebug( "TeX: $cmd\n" );
Follow-up revisions
Revision
Commit summary
Author
Date
r63214
Follow-up
r63213
. Move it to wfEscapeShellArg, which is the proper place.
platonides
18:22, 3 March 2010
r69201
Revert
r63213
,
r63214
per CR comment on
r63214
, doesn't match documented cmd....
tstarling
06:54, 9 July 2010
Status & tagging log
06:54, 9 July 2010
Tim Starling
(
talk
|
contribs
)
changed the
status
of r63213
[
removed:
new
added:
reverted]