Skip to content
Permalink
Browse files Browse the repository at this point in the history
Added a check for passed in date to time.php.
  • Loading branch information
anuko committed Oct 12, 2021
1 parent 71796c6 commit 5599067
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion initialize.php
Expand Up @@ -12,7 +12,7 @@
// Disable displaying errors on screen.
ini_set('display_errors', 'Off');

define("APP_VERSION", "1.19.29.5598");
define("APP_VERSION", "1.19.30.5599");
define("APP_DIR", dirname(__FILE__));
define("LIBRARY_DIR", APP_DIR."/WEB-INF/lib");
define("TEMPLATE_DIR", APP_DIR."/WEB-INF/templates");
Expand Down
6 changes: 6 additions & 0 deletions time.php
Expand Up @@ -32,6 +32,12 @@
exit();
}
}
// If we are passed in a date, make sure it is in correct format.
$date = $request->getParameter('date');
if ($date && !ttValidDate($date)) {
header('Location: access_denied.php');
exit();
}
// End of access checks.

// Determine user for whom we display this page.
Expand Down

0 comments on commit 5599067

Please sign in to comment.