#1183: FormPopulationFilter raises warning at line 215
-------------------------------+--------------------------------------------
 Reporter:  mug...@…           |       Owner:  david   
     Type:  defect             |      Status:  assigned
 Priority:  normal             |   Milestone:  1.0.2   
Component:  filter             |     Version:  1.0.1   
 Severity:  normal             |    Keywords:          
Has_patch:  0                  |  
-------------------------------+--------------------------------------------

Comment(by mug...@…):

 Replying to [comment:9 david]:
 > Can you try this line as a replacement:
 > {{{
 >
 
if(preg_match('/;\s*charset=(")?(?P<charset>.+?(?(1)(?=(?<!\\\\)")|($|(?=[;\s]))))(?(1)")/i',
 $meta->getAttribute('content'), $matches)) {
 > }}}
 > and tell me if it works for you?
 Cool! It works fine for me :)

 > P.P.S: it never goes into this branch for me, by the way; it seems that
 my newer libxml detects a charset from an HTML document even in XML
 parsing mode by looking at a {{{<meta http-equiv="Content-Type"}}} header
 - what is your libxml version?
 the version is 2.6.26 in my environment(CentOS 5.4)

-- 
Ticket URL: <http://trac.agavi.org/ticket/1183#comment:11>
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