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

@ -7,6 +7,11 @@
*/
class SCoreException extends Exception
{
public function __construct(string $msg, ?string $query=null)
{
parent::__construct($msg);
$this->query = $query;
}
}
/**