easy-handlers: contrary to the docs, integer parameters are parsed with :junk-allowed t

Hans Hübner hans.huebner at gmail.com
Mon Jul 1 04:44:54 UTC 2013


I recorded this as https://github.com/edicl/hunchentoot/issues/55 - The
string should be checked to contain only digits before using parse-integer
(without :junk-allowed t).

Thanks for the report,
Hans


2013/7/1 Anton Vodonosov <avodonosov at yandex.ru>

> Reading the doc here http://weitz.de/hunchentoot/#easy-handlers
> >  If parameter-type is 'INTEGER and the parameter string consists solely
> > of decimal digits, var's value will be the corresponding integer,
> otherwise NIL.
>
> But when I enter "50jj99" to the form, the parameter gets value 50.
>
> The doc and implementation disagree.
>
> Best regards,
> - Anton
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20130701/466b4476/attachment.html>


More information about the Tbnl-devel mailing list