Mercurial > hg > mgallery
changeset 312:326935332784
Remove <?xpacket ?> from the XMP, as SimpleXML can't parse it.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 06 Apr 2020 18:36:23 +0300 |
parents | 8fd5c850f921 |
children | d94b0ebe97c6 |
files | mgtool.php |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mgtool.php Mon Apr 06 17:23:02 2020 +0300 +++ b/mgtool.php Mon Apr 06 18:36:23 2020 +0300 @@ -332,6 +332,7 @@ // so we will crudely remove them with some regexes $xmpPatterns = [ + "/<\?xpacket\s+.*?\?>/", "/[a-zA-Z]+:/", "/\/[a-zA-Z]+:/", "/<\/?(Bag|Alt|Seq)>/" @@ -340,6 +341,7 @@ $xmpReplacements = [ "", + "", "\/", "", ];