titanium Posted November 9, 2013 Share Posted November 9, 2013 $sanitizer->selectorValue($value) limits the length of a selector to 100 characters, whereas the class constant "maxValueLength" of the "Selectors" class allows 500 characters. Shouldn't that be equal? Maybe it has been overseen by Ryan when he changed the selector code? Link to comment Share on other sites More sharing options...
ryan Posted November 9, 2013 Share Posted November 9, 2013 That's a good point. Actually what probably would be better here is an argument that lets you specify the max length. 500 is probably inappropriately long for many instances where you would use selectorValue, especially since this function's max length of 100 is referring to number of characters, not number of bytes. I'll go ahead and add that. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now