Ignore:
Timestamp:
Sep 23, 2023, 12:04:04 AM (15 months ago)
Author:
chronos
Message:
  • Fixed: Numeric check for input values.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/Common.php

    r901 r958  
    8484
    8585    if (!array_key_exists('Page', $_SESSION)) $_SESSION['Page'] = 0;
    86     if (array_key_exists('page', $_GET)) $_SESSION['Page'] = $_GET['page'] * 1;
     86    if (array_key_exists('page', $_GET) and is_numeric($_GET['page'])) $_SESSION['Page'] = $_GET['page'] * 1;
    8787    if ($_SESSION['Page'] < 0) $_SESSION['Page'] = 0;
    8888    if ($_SESSION['Page'] >= $PageCount) $_SESSION['Page'] = $PageCount - 1;
Note: See TracChangeset for help on using the changeset viewer.