ResourceLoaderImage: tighten up svg handling
authorChad Horohoe <chadh@wikimedia.org>
Wed, 18 Feb 2015 19:19:38 +0000 (11:19 -0800)
committerChad Horohoe <chadh@wikimedia.org>
Wed, 18 Feb 2015 19:37:43 +0000 (11:37 -0800)
commit231ea75c675d764c08ee54389f9e8651fbcfd939
tree2e0886bbf7d3009925c726bc1071730d2fc531cf
parent325a40dd0654c5d7d4e9845bf0b05edea90281df
ResourceLoaderImage: tighten up svg handling

- Check $wgSVGConverter to see if it starts with rsvg, instead
  of just being rsvg. Other things like rsvg-secure are also ok.
- Make sure SvgHandler::rasterize() returned sanely before attempting
  to use the file it produces.
- Clean up temp SVG file if we return early
- Add some debug logging when rasterization fails

Bug: T89505
Change-Id: I9483c8c54a30e328565182b00d50dbf3b83076cd
includes/resourceloader/ResourceLoaderImage.php