Tell regexp parser to use extra analysis on external link regexp;
[lhc/web/wiklou.git] / includes / SpecialGeo.php
index f57f49a..c4af429 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-# Copyright (C) 2003 Brion Vibber <brion@pobox.com>
+# Copyright (C) 2004 Magnus Manske <magnus.manske@web.de>
 # http://www.mediawiki.org/
 # 
 # This program is free software; you can redistribute it and/or modify
 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 # http://www.gnu.org/copyleft/gpl.html
 
-function wfSpecialGeo( $page = "" ) {
-       global $wgOut, $wgLang;
-       $coordinates = $_GET['coordinates'] ;
+/**
+ *
+ * @package MediaWiki
+ * @subpackage SpecialPage
+ */
+
+/**
+ *
+ */
+function wfSpecialGeo( $page = '' ) {
+       global $wgOut, $wgLang, $wgRequest;
+       $coordinates = htmlspecialchars( $wgRequest->getText( 'coordinates' ) );
        $coordinates = explode ( ":" , $coordinates ) ;
        $ns = array_shift ( $coordinates ) ;
        $ew = array_shift ( $coordinates ) ;