Last modified: 2012-03-26 18:54:53 UTC
{{nse:Something that is not a namespace}} triggers a php warning, since {{nse:Something not a namespace}} calls CoreParserFunctions::ns( $parser, "something not a namespace" ) (the same function that handles {{ns:...}}, which in case of not getting a valid namespace will return an array to specify failure to the parser. However nse assumes it always succedes (and thus always returns a string), so it passes the return value directly to urlencode. nse needs to be changed to check that CoreParserFunctions::ns returns a string before trying to urlencode it. If it gets something back that is not a string it should return the result immediately without processing it further. Relevant warning generated: <b>Warning</b>: urlencode() expects parameter 1 to be string, array given in <b>/var/www/w/phase3/includes/GlobalFunctions.php</b> on line <b>351</b><br />
Fixed in: https://gerrit.wikimedia.org/r/#change,3748 (master) https://gerrit.wikimedia.org/r/#change,3750 (REL1_19) https://gerrit.wikimedia.org/r/#change,3751 (REL1_18)