HOR-282 Adds more filtering.

This commit is contained in:
Chloe Deguzman
2016-03-03 04:25:03 +00:00
parent 8951d9976c
commit 3bf9e110db

View File

@@ -31,7 +31,7 @@ class ProcessSupervisors extends Api
return (preg_match("/^.*\/paged.*$/", $this->restler->url))? $response : $response["data"];
} catch (\Exception $e) {
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
throw new RestException(Api::STAT_APP_EXCEPTION, htmlspecialchars($e->getMessage()));
}
}