Development

Changeset 9216

You must first sign up to be able to contribute.

Changeset 9216

Show
Ignore:
Timestamp:
05/23/08 17:01:09 (4 months ago)
Author:
FabianLange
Message:

1.0: fillin: fixed bug with html documents having extra attributes in head tag.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/util/sfFillInForm.class.php

    r9209 r9216  
    5050    $dom = new DomDocument('1.0', sfConfig::get('sf_charset', 'UTF-8')); 
    5151 
    52     $noHead = strpos($html,'<head>') === false; 
     52    $noHead = strpos($html,'<head') === false; 
    5353    if ($noHead){ 
    5454      // loadHTML needs the conent-type meta for the charset