From f5ba2106cd4b91537a8b71b7a3f1eab90669ba40 Mon Sep 17 00:00:00 2001 From: KeenRivals Date: Fri, 14 Dec 2018 21:08:00 -0500 Subject: [PATCH] Fix snipeit:unescape not unescaping quotes (#6506) --- app/Console/Commands/FixDoubleEscape.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/FixDoubleEscape.php b/app/Console/Commands/FixDoubleEscape.php index 648e209950..64f6aad572 100644 --- a/app/Console/Commands/FixDoubleEscape.php +++ b/app/Console/Commands/FixDoubleEscape.php @@ -71,7 +71,7 @@ class FixDoubleEscape extends Command foreach($classname::where("$field",'LIKE','%&%')->get() as $row) { $this->info('Updating '.$field.' for '.$classname); - $row->{$field} = html_entity_decode($row->{$field}); + $row->{$field} = html_entity_decode($row->{$field},ENT_QUOTES); $row->save(); $count[$classname][$field]++;