Why is this preg_match not working? |
05-01-2015, 04:11 PM
(This post was last modified: 05-01-2015, 04:17 PM by latearrival. Edit Reason: mentioned i was using grocery_crud )
That's what's happening!
When - and only when - the form field being validated contains, anyhwere within it, an ampersand followed immediately by two or more characters (e.g. foo&ba or foo&bar), a semi-colon is being added to the end of the field value passed to the callback function. So, for example - User enters "foo&b" and the callback function is passed "foo&b" to validate. - User enters "foo&bar" and the callback function is passed "foo&bar;" to validate. Obviously, I can workaround this now. I have no idea why it's happening though! I'm using Grocery CRUD with Codeigniter so the explanation is probably buried deep inside one of those frameworks. Thanks for your help. |
Messages In This Thread |
Why is this preg_match not working? - by latearrival - 04-30-2015, 06:29 AM
RE: Why is this preg_match not working? - by silentium - 04-30-2015, 03:52 PM
RE: Why is this preg_match not working? - by latearrival - 04-30-2015, 04:18 PM
RE: Why is this preg_match not working? - by silentium - 04-30-2015, 09:48 PM
RE: Why is this preg_match not working? - by latearrival - 05-01-2015, 03:42 PM
RE: Why is this preg_match not working? - by latearrival - 05-01-2015, 04:11 PM
|