Skip to content

Commit

Permalink
reverting whitespace appeasement
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanrath committed Aug 5, 2024
1 parent 932498f commit 4b9f35c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ diff --git a/www/errorreport.php b/www/errorreport.php
index a95631083..81c10a238 100644
--- a/www/errorreport.php
+++ b/www/errorreport.php
@@ -17,2 +17,2 @@ $reportId = (string) $_REQUEST['reportId'];
@@ -17,6 +17,10 @@ $reportId = (string) $_REQUEST['reportId'];
$email = (string) $_REQUEST['email'];
$text = htmlspecialchars((string) $_REQUEST['text']);

+if (!preg_match('/^[0-9a-f]{8}$/', $reportId)) {
+ throw new SimpleSAML_Error_Exception('Invalid reportID');
+}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
120a121,141
> }
>
>
>
>
> /**
> * Verify that a given URL is valid.
> *
Expand All @@ -25,7 +25,7 @@
> if (!self::isValidURL($url)) {
> throw new \SimpleSAML_Error_Exception('Invalid destination URL.');
151a176
>
>
328c353
< if (filter_var($url, FILTER_VALIDATE_URL) === false) {
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
> if (!\SimpleSAML\Utils\HTTP::isValidURL($postData['url'])) {
> throw new \SimpleSAML\Error\Exception('Invalid destination URL.');
> }
>
>

0 comments on commit 4b9f35c

Please sign in to comment.