fixes #2150 move function strip_html_in_metadata outside get_exif_data

This commit is contained in:
plegall
2024-04-18 14:20:55 +02:00
parent 0c53880707
commit e8090d4149

View File

@@ -183,11 +183,6 @@ function get_exif_data($filename, $map)
if (!$conf['allow_html_in_metadata'])
{
function strip_html_in_metadata(&$v, $k)
{
$v = strip_tags($v);
}
foreach ($result as $key => $value)
{
// in case the origin of the photo is unsecure (user upload), we remove
@@ -206,6 +201,10 @@ function get_exif_data($filename, $map)
return $result;
}
function strip_html_in_metadata(&$v, $k)
{
$v = strip_tags($v);
}
/**
* Converts EXIF GPS format to a float value.