Index: trunk/extensions/SemanticMediaWiki/specials/ExportRDF/SMW_SpecialExportRDF.php |
— | — | @@ -30,6 +30,9 @@ |
31 | 31 |
|
32 | 32 | if ($page=='') { //try to get GET parameter; simple way of calling the export
|
33 | 33 | $page = $wgRequest->getVal( 'page' );
|
| 34 | + } else {
|
| 35 | + //FIXME: this might be needed with MediaWiki 1.9 final, but it would be wrong in 1.8
|
| 36 | + //$page = urldecode($page);
|
34 | 37 | }
|
35 | 38 |
|
36 | 39 | if ($page=='') { //try to get POST list; some settings are only available via POST
|
— | — | @@ -196,7 +199,7 @@ |
197 | 200 | break;
|
198 | 201 | }
|
199 | 202 | $this->long_uri = $xmlent . $baseXML;
|
200 | | - if (mb_substr($baseXML,0,1)=='-') { // illegal as first char in XML
|
| 203 | + if (in_array(mb_substr($baseXML,0,1), array('-','0','1','2','3','4','5','6','7','8','9'))) { // illegal as first char in XML
|
201 | 204 | $this->short_uri = 'wiki:_' . $this->ns_uri . $baseXML;
|
202 | 205 | } else {
|
203 | 206 | $this->short_uri = $xmlprefix . $baseXML;
|