#1136: AgaviNumberValidator mutates invalid input if translation is used for
parsing
------------------------+---------------------------------------------------
 Reporter:  david       |       Owner:  dominik
     Type:  defect      |      Status:  new    
 Priority:  normal      |   Milestone:  1.0.2  
Component:  validation  |     Version:  1.0.1  
 Severity:  normal      |    Keywords:         
Has_patch:  0           |  
------------------------+---------------------------------------------------
 {{{AgaviDecimalFormatter}}} always returns {{{int(0)}}} for non-number
 strings as the regular expression always matches (all parts are optional).
 That should probably be fixed separately.

 In any case, it assigns the return value straight to {{{$value}}}, which
 is a reference to the input. Instead, a check should be performed if
 {{{$value}}} is not {{{false}}} and if {{{$hasExtraChars}}} is
 {{{false}}}.

-- 
Ticket URL: <http://trac.agavi.org/ticket/1136>
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