PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_QuickForm_Controller » Bug #3443

Jump action ads SID also when session.use_only_cookies

Details

Submitted2005-02-12 13:21 UTC
Fromjeroenl at zwolnet dot com
Assignedavb
StatusClosed
PackageHTML_QuickForm_Controller
PHP Version4.3.10
Roadmaps(Not assigned)

Comments

[2005-02-12 13:21 UTC] jeroenl at zwolnet dot com

Description:
------------
The Next action also adds the SID to the url when session.use_only_cookies is configured.
This is not wanted.

Solution is to check session.use_only_cookies, so iso.:

$url = $action . ... . ((!defined('SID') || '' == SID)? '': '&' . SID);

Do something like:

$url = $action . (false === strpos($action, '?')? '?': '&') . $current->getButtonName('display') . '=true';
if (!ini_get('session.use_only_cookies'))
$url .= ((!defined('SID') || '' == SID)? '': '&' . SID);

Greetings,
Jeroen.