Changeset 1429


Ignore:
Timestamp:
Jul 4, 2006, 12:57:21 AM (18 years ago)
Author:
plg
Message:

bug fixed: add the check of non emptiness on $_SERVERPATH_INFO (and not
only its existence) before using it in strpos.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_6/include/functions_session.inc.php

    r1216 r1429  
    8888  { // mod_rewrite is activated for upper level directories. we must set the
    8989    // cookie to the path shown in the browser otherwise it will be discarded.
    90     if ( isset($_SERVER['PATH_INFO']) )
     90    if ( isset($_SERVER['PATH_INFO']) and !empty($_SERVER['PATH_INFO']) )
    9191    {
    9292      $idx = strpos( $_SERVER['REDIRECT_URL'], $_SERVER['PATH_INFO'] );
Note: See TracChangeset for help on using the changeset viewer.