[Mediawiki-l] $wgRequest->getVal('_naw_title')

Michael Heyder Info at hafenvolleyballer.de
Wed Aug 29 16:09:10 UTC 2007


Brion Vibber schrieb:
> Michael Heyder wrote:
>> Hi,
>>
>> I've a litte question:
>>
>> $wgRequest->getVal('_naw_title') result nothing, when
>> post-name="_naw_title[]".
>>
>> What's going wrong
> 
> WebRequest::getVal() returns a string or null. This protects against
> type errors from malicious submissions passing unexpected arrays.
> 
> If you're dealing explicitly with an array parameter, use
> $wgRequest->getArray() to enforce an array-or-null return.
> 
> -- brion vibber (brion @ wikimedia.org)

Brian,

thanks a lot.




More information about the MediaWiki-l mailing list