https://bugzilla.wikimedia.org/show_bug.cgi?id=27376

Bawolff <bawolff...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|when using                  |when using
                   |ApiBase::paramType          |ApiBase::PARAM_TYPE =>
                   |                            |'integer' without a min or
                   |                            |max value, api doesn't
                   |                            |validate the input is
                   |                            |actually an integer

--- Comment #1 from Bawolff <bawolff...@gmail.com> 2011-02-13 07:36:38 UTC ---
oops, hit enter by accident.

When you specify a parameter to an api module is an integer with
ApiBase::PARAM_TYPE => 'integer', but don't list a max or min value, the api
doesn't seem to check its actually an integer. Expected behaviour would be for
it to pass the value through intval to turn it into an integer, like it does if
a min or max is specified.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to