Skip to content
Snippets Groups Projects
Unverified Commit 538076b1 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

security silly bug fix

parent 7545e513
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST")
$sCode = validatyInput($_POST["surveyCode"]);
$key = validatyInput($_POST["key"]);
// Warning: forced HTTPS
if($key == '0000' && preg_match('/[-0-9]*/', $sCode) == 1)
if($key == '0000' && preg_match('/^[-0-9]*$/', $sCode) == 1)
{
//echo 'Please wait while the program is running...';
exec("./php_agent.fish $sCode", $cstdout);
......
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