Skip to content
Snippets Groups Projects
Commit 88945224 authored by Christopher Smith's avatar Christopher Smith
Browse files

Add encoding fix to tpl_img_getTag()

Run jpeg meta tags through cleanText for a conversion to UTF-8
from latin-1 if possible.  MediaManager already uses this
conversion.  Addresses a side issue of FS#1988
parent 069942ac
No related branches found
No related tags found
No related merge requests found
......@@ -1018,7 +1018,7 @@ function tpl_img_getTag($tags, $alt = '', $src = null) {
static $meta = null;
if(is_null($meta)) $meta = new JpegMeta($src);
if($meta === false) return $alt;
$info = $meta->getField($tags);
$info = cleanText($meta->getField($tags));
if($info == false) return $alt;
return $info;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment