#745: AgaviStringValidator should trim the input string
-----------------------------------------------------------+----------------
 Reporter:  [EMAIL PROTECTED]                                 |        Owner:  
dominik
     Type:  enhancement                                    |       Status:  new 
   
 Priority:  normal                                         |    Milestone:  1.0 
   
Component:  validation                                     |      Version:  
0.11.0 
 Severity:  normal                                         |   Resolution:      
   
 Keywords:  AgaviStringValidator validation trim trimming  |    Has_patch:  1   
   
-----------------------------------------------------------+----------------
Comment (by [EMAIL PROTECTED]):

 If the string is encoded with a single-byte ISO-... character set the
 trimming should be no problem. All trimmed characters should be within
 ANSI (their ordinal value is lower than 127) and therefore are shared
 across the single-byte character sets.

 If the input string is encoded in UTF-8 it gets temporarily converted to
 ISO-8859-1 anyway in AgaviStringValidator. You can't use
 AgaviStringValidator for every other (multibyte-) character set since it
 uses strlen which works for single-byte character sets/encodings only.

 So I guess using trim should be no problem. Or do I miss something here?

-- 
Ticket URL: <http://trac.agavi.org/ticket/745#comment:2>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5


_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to