html_escape all exception messages - pass query out-of-band if we want it formatted

This commit is contained in:
Shish
2019-11-11 16:43:04 +00:00
parent 6486bb95da
commit c94f289291
4 changed files with 20 additions and 20 deletions

View File

@ -63,7 +63,7 @@ class UserClass
$min_ability = $a;
}
}
throw new SCoreException("Unknown ability '".html_escape($ability)."'. Did the developer mean '".html_escape($min_ability)."'?");
throw new SCoreException("Unknown ability '$ability'. Did the developer mean '$min_ability'?");
}
}
}