diff options
author | Urban Müller | 2009-10-07 20:10:15 +0000 |
---|---|---|
committer | Urban Müller | 2009-10-07 20:10:15 +0000 |
commit | a84c0754352b5f3833464d32283b1a9da0eabe10 (patch) | |
tree | 5550b5cddd61d1082e7088ba7cc8ca82bbcb8701 | |
parent | baaf85ca23b34506e788fe22b81e5bd394e62fc1 (diff) | |
download | itools-a84c0754352b5f3833464d32283b1a9da0eabe10.tar.gz itools-a84c0754352b5f3833464d32283b1a9da0eabe10.tar.bz2 itools-a84c0754352b5f3833464d32283b1a9da0eabe10.zip |
ignore svg parse errs
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -506,7 +506,7 @@ function imageconvert($p) $result = false; $imagetype = @exif_imagetype($p['in']); - if (!$imagetype && @get_class(it_xml::create(fopen($p['in'], "r"), array('prefix' => "_imageconvert_"))) == "_imageconvert_svg") + if (!$imagetype && @get_class(it_xml::create(fopen($p['in'], "r"), array('prefix' => "_imageconvert_", 'safety' => 0))) == "_imageconvert_svg") { # Accept SVG files if they are valid XML and root tag is svg $type = "svg"; |