We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 524e10a commit 79df81fCopy full SHA for 79df81f
1 file changed
system/Debug/Toolbar.php
@@ -486,7 +486,7 @@ public function respond()
486
487
//Validate and sanitize the debugbar_time parameter -- ss
488
$debugbarTime= $request->getGet('debugbar_time');
489
- if (!preg_match('/^[a-zA-Z0-9_]+$/', $debugbarTime)) {
+ if (!preg_match('/^\d+(\.\d+)?$/', $debugbarTime)) {
490
throw new \InvalidArgumentException('Invalid debugbar_time parameter.');
491
}
492
@@ -503,6 +503,12 @@ public function respond()
503
504
exit;
505
506
+
507
+ // Filename not found
508
+ http_response_code(404);
509
510
+ exit; // Exit here is needed to avoid loading the index page
511
+ }
512
513
514
/**
0 commit comments