Skip to content

Commit

Permalink
[FIX] Legacy/Cache/escapeDoubleQuotes().
Browse files Browse the repository at this point in the history
  • Loading branch information
Seiger committed Jun 13, 2023
1 parent 660d7d1 commit 32f1834
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/Legacy/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ public function escapeDoubleQuotes($s)
{
$q1 = array("\\", "\"", "\r", "\n", "\$");
$q2 = array("\\\\", "\\\"", "\\r", "\\n", "\\$");

return str_replace($q1, $q2, $s);
return str_replace($q1, $q2, ($s ?? ''));
}

/**
Expand Down

0 comments on commit 32f1834

Please sign in to comment.