fix xss attack
authorRiver Tarnell <kateturner@users.mediawiki.org>
Thu, 14 Oct 2004 03:50:14 +0000 (03:50 +0000)
committerRiver Tarnell <kateturner@users.mediawiki.org>
Thu, 14 Oct 2004 03:50:14 +0000 (03:50 +0000)
includes/SpecialGeo.php

index 04e6c2b..c4af429 100644 (file)
@@ -28,7 +28,7 @@
  */
 function wfSpecialGeo( $page = '' ) {
        global $wgOut, $wgLang, $wgRequest;
-       $coordinates = $wgRequest->getText( 'coordinates' ) ;
+       $coordinates = htmlspecialchars( $wgRequest->getText( 'coordinates' ) );
        $coordinates = explode ( ":" , $coordinates ) ;
        $ns = array_shift ( $coordinates ) ;
        $ew = array_shift ( $coordinates ) ;