Skip to content
Snippets Groups Projects
Unverified Commit 0f1f8ad8 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Make errorreport.php verify the format of report IDs

parent bf44190b
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,10 @@ $reportId = $_REQUEST['reportId'];
$email = $_REQUEST['email'];
$text = $_REQUEST['text'];
if (!preg_match('/^[0-9a-f]{8}$/', $reportId)) {
throw new \SimpleSAML\Error\Exception('Invalid reportID');
}
$data = null;
try {
$session = \SimpleSAML\Session::getSessionFromRequest();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment