From 7ca56e9c709d81efab8d7a34d72611e089ea1b6d Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 1 Oct 2006 04:40:27 +0000 Subject: [PATCH] escaping for $path, call me paranoid --- includes/templates/NoLocalSettings.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/templates/NoLocalSettings.php b/includes/templates/NoLocalSettings.php index 22ce534235..e71dd396fa 100644 --- a/includes/templates/NoLocalSettings.php +++ b/includes/templates/NoLocalSettings.php @@ -9,7 +9,7 @@ if ( isset( $wgVersion ) ) { # Could use but then we have to worry about http[s]/port #/etc. $path = ''; if( isset( $_SERVER['SCRIPT_NAME'] )) { - $path = preg_replace('/index.php/', '', $_SERVER['SCRIPT_NAME']); + $path = htmlspecialchars( preg_replace('/index.php/', '', $_SERVER['SCRIPT_NAME']) ); } ?> @@ -31,7 +31,7 @@ if( isset( $_SERVER['SCRIPT_NAME'] )) { - The MediaWiki logo + The MediaWiki logo

MediaWiki

@@ -39,7 +39,7 @@ if( isset( $_SERVER['SCRIPT_NAME'] )) { if ( file_exists( 'config/LocalSettings.php' ) ) { echo( 'To complete the installation, move config/LocalSettings.php to the parent directory.' ); } else { - echo( "Please set up the wiki first." ); + echo( "Please set up the wiki first." ); } ?> -- 2.20.1