Firefox interpretes links starting with // as if they would start with http://. If...
authorJens Frank <jeluf@users.mediawiki.org>
Sun, 5 Sep 2010 21:54:01 +0000 (21:54 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Sun, 5 Sep 2010 21:54:01 +0000 (21:54 +0000)
includes/templates/NoLocalSettings.php

index 21a6de2..88510cc 100644 (file)
@@ -11,6 +11,7 @@ if ( !isset( $wgVersion ) ) {
 }
 $script = $_SERVER['SCRIPT_NAME'];
 $path = pathinfo( $script, PATHINFO_DIRNAME ) . '/';
+$path = str_replace( '//', '/', $path );
 $ext = pathinfo( $script, PATHINFO_EXTENSION );
 ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">