Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.5

Bug #5419 isValidString() incorrect
Submitted: 2005-09-15 19:33 UTC
From: vladimir at webrover dot ru Assigned: schst
Status: Closed Package: XML_Util
PHP Version: 4.3.10 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2005-09-15 19:33 UTC] vladimir at webrover dot ru
Description: ------------ function isValidString() uses this regular expression to check, whether string is valid XML name: /^([a-zA-Z_]([a-zA-Z0-9_\-\.]*)?:)?[a-zA-Z_]([a-zA-Z0-9_\-\.]+)?$/ i.e. XML letter defined as [a-zA-Z], which is not correct - it must include wider range of characters according to XML specification. I think, it would be better, but maybe not the best, to use this definition of letter: /^([[:alpha:]_]([[:alnum:]\-\.]*)?:)?[[:alpha:]_]([[:alnum:]\-\.]+)?$/

Comments

 [2005-09-22 15:55 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!