[Clipart] upload script suggestion
Stephen Silver
ocalocal at btinternet.com
Mon Mar 21 06:08:06 PST 2005
I wrote:
> The following two files in the incoming folder can't be fixed:
>
> stupa_christopher_fynn_01.svg
> endless-knot-border_chri_01.svg
>
> In both cases everything after the first <g> start tag appears
> to have been stripped out by the upload script - nothing at all
> remains of the image itself.
This line from upload_svg.cgi is surely the culprit:
$img =~ s|<$_.*?</$_>||gs for 'metadata', 'rdf:RDF', 'rdf';
This line can easily disembowel an SVG file. It also explains
the damage that had been done to a number of the files in the
failed-file archives.
--
Stephen Silver
More information about the clipart
mailing list