Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -554,7 +554,7 @@ |
555 | 555 | $wgOut->showUnexpectedValueError( 'oldimage', htmlspecialchars($oldimage) ); |
556 | 556 | return; |
557 | 557 | } |
558 | | - if ( strstr( $oldimage, "/" ) || strstr( $oldimage, "\\" ) ) { |
| 558 | + if( strpos( $oldimage, '/' ) !== false || strpos( $oldimage, '\\' ) !== false ) { |
559 | 559 | $wgOut->showUnexpectedValueError( 'oldimage', htmlspecialchars($oldimage) ); |
560 | 560 | return; |
561 | 561 | } |