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/Modules/IS/IS.php

    r922 r958  
    4242    if (array_key_exists('menutype', $_COOKIE)) $MenuType = $_COOKIE['menutype'];
    4343      else $MenuType = 0;
    44     if (array_key_exists('menutype', $_GET)) $MenuType = $_GET['menutype'] * 1;
     44    if (array_key_exists('menutype', $_GET) and is_numeric($_GET['menutype'])) $MenuType = $_GET['menutype'] * 1;
    4545    setcookie('menutype', $MenuType, time() + 60 * 60 * 24 * 365);
    4646
Note: See TracChangeset for help on using the changeset viewer.