Bug double quotes

This commit is contained in:
Fred Tempez 2023-03-20 09:56:05 +01:00
parent 6973442e4a
commit c8ea16040e
2 changed files with 2 additions and 4 deletions

View File

@ -142,7 +142,7 @@ class JsonDb extends \Prowebcraft\Dot
*/
public function save()
{
$v = json_encode($this->data, JSON_UNESCAPED_UNICODE | LOCK_EX);
$v = json_encode($this->data, JSON_UNESCAPED_UNICODE);
$l = strlen($v);
$t = 0;
while ($t < 5) {
@ -158,6 +158,4 @@ class JsonDb extends \Prowebcraft\Dot
}
}
}

View File

@ -1070,7 +1070,7 @@ class layout extends common
if ($this->core->output['inlineStyle']) {
foreach ($this->core->output['inlineStyle'] as $style) {
if ($style) {
echo '<style type="text/css">' . helper::minifyCss($style) . '</style>';
echo '<style type="text/css">' . helper::minifyCss(htmlspecialchars_decode($style)) . '</style>';
}
}