https://issues.apache.org/ooo/show_bug.cgi?id=118728
--- Comment #9 from Armin Le Grand <[email protected]> 2012-01-12 13:08:30 UTC --- ALG: You are correct, I stubled already over files with lot of comment text where '<svg' was outside the 1st 256 bytes. I have now changed to do the following: (1) if(check('<?xml', 256) && check('version', 256))) (2) if(check('DOCTYPE', 256) && check('svg', 256)) (3) else if(check('<svg', 256)) (4) else if(check('<svg', fullsize)) (5) is_svg; Seems okay and handles all cases I stumbled upon. If 1-3 fails, evtl. the full file is checked, but should happen very rarely. -- Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
