mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01: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'])
|
||||
{
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user