* (bug 27465) Fix metadata extraction for SVG files using unusual namespace names
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 25 May 2011 23:59:43 +0000 (23:59 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 25 May 2011 23:59:43 +0000 (23:59 +0000)
commitd13482fdbe111c4f6b8f95c68bd48a079173116f
tree89cffa11e2ef22c8881e179159b5173477efa659
parent8ce92ec6a72068cf51db23652b581b53f2e0eeec
* (bug 27465) Fix metadata extraction for SVG files using unusual namespace names

The previous fix (in r82307) only checked explicitly for a namespace given the 'svg' prefix; this fix use XML namespacing support on XMLReader to check for the actual namespace URI correctly.
Fixed up a test case (for RDF extraction) and added trimming on the whitespace.
Also added another test case file that doesn't use a namespace name on the root.
includes/media/SVGMetadataExtractor.php
tests/phpunit/includes/media/SVGMetadataExtractorTest.php
tests/phpunit/includes/media/Wikimedia-logo.svg [new file with mode: 0644]