Ignore:
Timestamp:
Mar 25, 2010, 6:59:35 AM (14 years ago)
Author:
rvelices
Message:
  • fix cat_modify
    • missing token in url
    • double icon display
  • simplified func check_pwg_token
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions.inc.php

    r5306 r5335  
    14541454function check_pwg_token()
    14551455{
    1456   $valid_token = get_pwg_token();
    1457   $given_token = null;
    1458 
    1459   if (!empty($_POST['pwg_token']))
    1460   {
    1461     $given_token = $_POST['pwg_token'];
    1462   }
    1463   elseif (!empty($_GET['pwg_token']))
    1464   {
    1465     $given_token = $_GET['pwg_token'];
    1466   }
    1467   if ($given_token != $valid_token)
    1468   {
    1469     access_denied();
    1470   }
     1456  if (!empty($_REQUEST['pwg_token']))
     1457  {
     1458    if (get_pwg_token() != $_REQUEST['pwg_token'])
     1459    {
     1460      access_denied();
     1461    }
     1462  }
     1463  else
     1464    bad_request('missing token');
    14711465}
    14721466
Note: See TracChangeset for help on using the changeset viewer.