mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Switch to searching on semicolon instead of &
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
4e14d70427
commit
eedc14401a
|
@ -69,7 +69,7 @@ class FixDoubleEscape extends Command
|
||||||
$count[$classname]['classname']++;
|
$count[$classname]['classname']++;
|
||||||
$count[$classname][$field] = 0;
|
$count[$classname][$field] = 0;
|
||||||
|
|
||||||
foreach($classname::where("$field",'LIKE','%&%')->get() as $row) {
|
foreach($classname::where("$field",'LIKE','%;%')->get() as $row) {
|
||||||
|
|
||||||
$fixed = html_entity_decode($row->{$field});
|
$fixed = html_entity_decode($row->{$field});
|
||||||
if ($row->save()) {
|
if ($row->save()) {
|
||||||
|
|
Loading…
Reference in a new issue