Fix snipeit:unescape not unescaping quotes (#6506)

This commit is contained in:
KeenRivals 2018-12-14 21:08:00 -05:00 committed by snipe
parent 67f6df2be3
commit f5ba2106cd

View file

@ -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]++;