From hans.huebner at gmail.com Mon Jul 1 04:44:54 2013 From: hans.huebner at gmail.com (=?ISO-8859-1?Q?Hans_H=FCbner?=) Date: Mon, 1 Jul 2013 06:44:54 +0200 Subject: easy-handlers: contrary to the docs, integer parameters are parsed with :junk-allowed t In-Reply-To: <1401372630198@web8d.yandex.ru> References: <1401372630198@web8d.yandex.ru> Message-ID: 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 > 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: