mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 08:39:07 +01:00
we need to double encode (html::htmlspecialchars( , TRUE)), as otherwise we get invalid json, eg. for quotes, fixes not working display in filemanager for some directories containing directories with quotes in their name
This commit is contained in:
parent
a7180f2f1c
commit
8ce9969ece
@ -826,7 +826,8 @@ abstract class egw_framework
|
||||
foreach($extra as $name => $value)
|
||||
{
|
||||
if (is_array($value)) $value = json_encode($value);
|
||||
$java_script .= ' data-'.$name."=\"". html::htmlspecialchars($value)."\"";
|
||||
// we need to double encode (html::htmlspecialchars( , TRUE)), as otherwise we get invalid json, eg. for quotes
|
||||
$java_script .= ' data-'.$name."=\"". html::htmlspecialchars($value, true)."\"";
|
||||
}
|
||||
$java_script .= "></script>\n";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user