mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 17:53:08 +02:00
fixes #2150 move function strip_html_in_metadata outside get_exif_data
This commit is contained in:
@@ -183,11 +183,6 @@ function get_exif_data($filename, $map)
|
|||||||
|
|
||||||
if (!$conf['allow_html_in_metadata'])
|
if (!$conf['allow_html_in_metadata'])
|
||||||
{
|
{
|
||||||
function strip_html_in_metadata(&$v, $k)
|
|
||||||
{
|
|
||||||
$v = strip_tags($v);
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($result as $key => $value)
|
foreach ($result as $key => $value)
|
||||||
{
|
{
|
||||||
// in case the origin of the photo is unsecure (user upload), we remove
|
// 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;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function strip_html_in_metadata(&$v, $k)
|
||||||
|
{
|
||||||
|
$v = strip_tags($v);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts EXIF GPS format to a float value.
|
* Converts EXIF GPS format to a float value.
|
||||||
|
|||||||
Reference in New Issue
Block a user