diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2014-03-13 19:43:33 +0000 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2014-03-13 19:43:33 +0000 |
commit | 88945224671d69f8fae0a3d4ab1acf003d7d747d (patch) | |
tree | 40badb167bf887951cd32902b5be4b84672f37c9 | |
parent | 069942acdaa5ba825bc3f92c7093b5071789f1ca (diff) | |
download | rpg-88945224671d69f8fae0a3d4ab1acf003d7d747d.tar.gz rpg-88945224671d69f8fae0a3d4ab1acf003d7d747d.tar.bz2 |
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
-rw-r--r-- | inc/template.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/template.php b/inc/template.php index 88964fada..ddbce8abb 100644 --- a/inc/template.php +++ b/inc/template.php @@ -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; } |