Hi
the instructions for the limit input fields read as follow:
If limit is negative, all components except the last -limit are returned.
in the validator though, the limit is checked with a ctype_digit function but, as i found out returns true only for positive string numbers
ctype_digit("-1"); //false
Comments
Comment #1
twistor commented!
Thanks.
http://drupalcode.org/project/feeds_tamper.git/commit/95c7288
Comment #2
twistor commented6.x
http://drupalcode.org/project/feeds_tamper.git/commit/8490d4a
Comment #3
gionnibgud commentedI'm not reopening the issue but I'm not sure is_numeric is a good solution. As I found out from the php manual "+0123.45e6 is a valid numeric value" but I don't think explode would accept that as a parameter.
What about checking for negative value before ctype_digit? Would this work?