Skip to content

Commit

Permalink
chg: [helper] Added param sanity check helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
iglocska committed Sep 14, 2023
1 parent d14e4c2 commit 1686215
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Model/AppModel.php
Expand Up @@ -4021,4 +4021,9 @@ private function validOrderClause($order){

return false;
}

public function checkParam($param)
{
return preg_match('/^[\w\_\-\. ]+$/', $param);
}
}

0 comments on commit 1686215

Please sign in to comment.