dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
aad3264
)
Bah, revert to r40753
author
Aaron Schulz
<aaron@users.mediawiki.org>
Wed, 17 Sep 2008 12:36:44 +0000
(12:36 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Wed, 17 Sep 2008 12:36:44 +0000
(12:36 +0000)
includes/Math.php
patch
|
blob
|
history
diff --git
a/includes/Math.php
b/includes/Math.php
index
a21527b
..
ca225d6
100644
(file)
--- a/
includes/Math.php
+++ b/
includes/Math.php
@@
-57,16
+57,15
@@
class MathRenderer {
if( function_exists( 'is_executable' ) && !is_executable( $wgTexvc ) ) {
return $this->_error( 'math_notexvc' );
}
if( function_exists( 'is_executable' ) && !is_executable( $wgTexvc ) ) {
return $this->_error( 'math_notexvc' );
}
- $delim = wfIsWindows() ? "' '" : ' ';
- $cmd = wfEscapeShellArg( $wgTexvc ) . $delim .
- wfEscapeShellArg( $wgTmpDirectory ) . $delim .
- wfEscapeShellArg( $wgTmpDirectory ) . $delim .
- wfEscapeShellArg( $this->tex ) . $delim .
- wfEscapeShellArg( $wgInputEncoding );
+ $cmd = $wgTexvc . ' ' .
+ escapeshellarg( $wgTmpDirectory ).' '.
+ escapeshellarg( $wgTmpDirectory ).' '.
+ escapeshellarg( $this->tex ).' '.
+ escapeshellarg( $wgInputEncoding );
if ( wfIsWindows() ) {
# Invoke it within cygwin sh, because texvc expects sh features in its default shell
if ( wfIsWindows() ) {
# Invoke it within cygwin sh, because texvc expects sh features in its default shell
- $cmd =
"sh -c $cmd"
;
+ $cmd =
'sh -c ' . wfEscapeShellArg( $cmd )
;
}
wfDebug( "TeX: $cmd\n" );
}
wfDebug( "TeX: $cmd\n" );