It seems that if you have a form variable with dashes in it (not
underscores) and attempt to run a profile check on it, do_check() parses
out only that part of the variable name after the final dash. This is
due to the regexp which parses the profile line in do_check():
elsif ($parameter =~ /(\w+)[\s=]+(.*)/) {
...since dash is not included in word characters it won't parse out as
part of the profile name.
Is there any reason why the above line can't be changed to:
elsif ($parameter =~ /([\w-]+)[\s=]+(.*)/) {
...and should we allow even additional characters?
The reason this is coming up is because I'm adding a profile check for
recaptchas, and the recaptcha system uses "g-recaptcha-response" for the
form name.
Peter
_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
underscores) and attempt to run a profile check on it, do_check() parses
out only that part of the variable name after the final dash. This is
due to the regexp which parses the profile line in do_check():
elsif ($parameter =~ /(\w+)[\s=]+(.*)/) {
...since dash is not included in word characters it won't parse out as
part of the profile name.
Is there any reason why the above line can't be changed to:
elsif ($parameter =~ /([\w-]+)[\s=]+(.*)/) {
...and should we allow even additional characters?
The reason this is coming up is because I'm adding a profile check for
recaptchas, and the recaptcha system uses "g-recaptcha-response" for the
form name.
Peter
_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users