r107952 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r107951
|
r107952
|
r107953
>
Date:
22:29, 3 January 2012
Author:
brion
Status:
ok
Tags:
Comment:
Revert
r107054
: breaks execution of lines that might test or output '<?php' say when generating a PHP script
Is apparently meant to strip an initial line from PHP script files being piped in, but is insufficient to actually catch all cases.
Modified paths:
/trunk/phase3/maintenance/eval.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/maintenance/eval.php
—
—
@@ -74,11 +74,6 @@
75
75
readline_add_history( $line );
76
76
readline_write_history( $historyFile );
77
77
}
78
- if( false !== strpos($line, "<?php") ) {
79
- # Someone sent a .php file to STDIN so we do not want
80
- # to interprate the special '<?php'.
81
- continue;
82
- }
83
78
$val = eval( $line . ";" );
84
79
if ( wfIsHipHop() || is_null( $val ) ) {
85
80
echo "\n";
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r107054
do not evaluate '<?php' line...
hashar
11:06, 22 December 2011
Status & tagging log
17:04, 4 January 2012
Johnduhart
(
talk
|
contribs
)
changed the
tags
for r107952
[]
17:03, 4 January 2012
Johnduhart
(
talk
|
contribs
)
changed the
tags
for r107952
[]
17:02, 4 January 2012
Johnduhart
(
talk
|
contribs
)
changed the
tags
for r107952
[]
17:02, 4 January 2012
Johnduhart
(
talk
|
contribs
)
changed the
tags
for r107952
[]
07:06, 4 January 2012
Nikerabbit
(
talk
|
contribs
)
changed the
status
of r107952
[
removed:
new
added:
ok]