Index: trunk/extensions/SemanticMediaWiki/includes/export/SMW_Exporter.php |
— | — | @@ -9,7 +9,7 @@ |
10 | 10 | * a format for easy serialisation in OWL or RDF. |
11 | 11 | * |
12 | 12 | * @author Markus Krötzsch |
13 | | - * @note AUTOLOADED |
| 13 | + * @ingroup SMW |
14 | 14 | */ |
15 | 15 | class SMWExporter { |
16 | 16 | |
— | — | @@ -260,8 +260,8 @@ |
261 | 261 | static public function encodeURI($uri) { |
262 | 262 | $uri = str_replace( '-', '-2D', $uri); |
263 | 263 | //$uri = str_replace( '_', '-5F', $uri); //not necessary |
264 | | - $uri = str_replace( array(':', '"','#','&',"'",'+','%'), |
265 | | - array('-3A', '-22','-23','-26','-27','-2B','-'), |
| 264 | + $uri = str_replace( array(':','"','#','&',"'",'+','!','%'), |
| 265 | + array('-3A', '-22','-23','-26','-27','-2B','-21','-'), |
266 | 266 | $uri); |
267 | 267 | return $uri; |
268 | 268 | } |
— | — | @@ -271,8 +271,8 @@ |
272 | 272 | * allows services that receive a URI to extract e.g. the according wiki page. |
273 | 273 | */ |
274 | 274 | static public function decodeURI($uri) { |
275 | | - $uri = str_replace( array('-22','-23','-26','-27','-2B','-'), |
276 | | - array('"','#','&',"'",'+','%'), |
| 275 | + $uri = str_replace( array('-22','-23','-26','-27','-2B','-21','-'), |
| 276 | + array('"','#','&',"'",'+','!','%'), |
277 | 277 | $uri); |
278 | 278 | $uri = str_replace( '-2D', '-', $uri); |
279 | 279 | return $uri; |