Tell regexp parser to use extra analysis on external link regexp;
[lhc/web/wiklou.git] / includes / SpecialGeo.php
index 73c8f7a..c4af429 100644 (file)
@@ -19,6 +19,8 @@
 
 /**
  *
+ * @package MediaWiki
+ * @subpackage SpecialPage
  */
 
 /**
@@ -26,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 ) ;