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
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@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