Index: trunk/extensions/SemanticMaps/SemanticMaps.php |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | |
37 | 37 | // Only initialize the extension when all dependencies are present. |
38 | 38 | if ( defined( 'Maps_VERSION' ) && defined( 'SMW_VERSION' ) ) { |
39 | | - define( 'SM_VERSION', '0.6.3 a5' ); |
| 39 | + define( 'SM_VERSION', '0.6.3 rc1' ); |
40 | 40 | |
41 | 41 | $smgScriptPath = ( isset( $wgExtensionAssetsPath ) && $wgExtensionAssetsPath ? $wgExtensionAssetsPath : $wgScriptPath . '/extensions' ) . '/SemanticMaps'; |
42 | 42 | $smgDir = dirname( __FILE__ ) . '/'; |
Index: trunk/extensions/Maps/Includes/Maps_CoordinateParser.php |
— | — | @@ -187,9 +187,9 @@ |
188 | 188 | $coordinates = str_replace( array( '´', '´' ), Maps_GEO_SEC, $coordinates ); |
189 | 189 | $coordinates = str_replace( array( '″', '″', Maps_GEO_SEC . Maps_GEO_SEC, '´´', '′′', '″' ), Maps_GEO_MIN, $coordinates ); |
190 | 190 | $coordinates = str_replace( array( '′', '′', '´', '′' ), Maps_GEO_SEC, $coordinates ); |
191 | | - |
| 191 | + |
192 | 192 | $coordinates = self::removeInvalidChars( $coordinates ); |
193 | | - |
| 193 | + |
194 | 194 | return $coordinates; |
195 | 195 | } |
196 | 196 | |
— | — | @@ -202,13 +202,14 @@ |
203 | 203 | */ |
204 | 204 | protected static function removeInvalidChars( $string ) { |
205 | 205 | $filtered = array(); |
206 | | - |
| 206 | + |
207 | 207 | foreach ( str_split( $string ) as $character ) { |
208 | 208 | $asciiValue = ord( $character ); |
209 | 209 | |
210 | | - if ( ( $asciiValue > 31 && $asciiValue < 127 ) ) { |
| 210 | + if ( ( $asciiValue > 31 && $asciiValue < 127 ) || $asciiValue == 194 || $asciiValue == 176 ) { |
211 | 211 | $filtered[] = $character; |
212 | 212 | } |
| 213 | + else {var_dump($asciiValue);} |
213 | 214 | } |
214 | 215 | |
215 | 216 | return implode( '', $filtered ); |
Index: trunk/extensions/Maps/Maps.php |
— | — | @@ -33,7 +33,7 @@ |
34 | 34 | echo '<b>Warning:</b> You need to have <a href="http://www.mediawiki.org/wiki/Extension:Validator">Validator</a> installed in order to use <a href="http://www.mediawiki.org/wiki/Extension:Maps">Maps</a>.'; |
35 | 35 | } |
36 | 36 | else { |
37 | | - define( 'Maps_VERSION', '0.6.3 a5' ); |
| 37 | + define( 'Maps_VERSION', '0.6.3 rc1' ); |
38 | 38 | |
39 | 39 | // The different coordinate notations. |
40 | 40 | define( 'Maps_COORDS_FLOAT', 'float' ); |