From a84c0754352b5f3833464d32283b1a9da0eabe10 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 7 Oct 2009 20:10:15 +0000 Subject: ignore svg parse errs --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') diff --git a/it.class b/it.class index 6a11c57..fdc2fc0 100644 --- a/it.class +++ b/it.class @@ -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"; -- cgit v1.2.3