Changeset 2033 for trunk/upload.php


Ignore:
Timestamp:
Jun 12, 2007, 11:52:46 PM (17 years ago)
Author:
vdigital
Message:

Bug 0000705: Upload error with incomplete URL.
+ Broken link in Admin/intro.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upload.php

    r1915 r2033  
    125125
    126126//-------------------------------------------------- access authorization check
    127 if (is_numeric($_GET['cat']))
     127if (isset($_GET['cat']) and is_numeric($_GET['cat']))
    128128{
    129129  $page['category'] = $_GET['cat'];
     
    140140    die('Fatal: you take a wrong way, bye bye');
    141141  }
     142}
     143else { // $page['category'] may be set by a futur plugin but without it
     144  die('Fatal: you take a wrong way, bye bye');
    142145}
    143146
Note: See TracChangeset for help on using the changeset viewer.