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_TreeMenu » Bug #331

Konqueror detection patch is wrong

Details

Submitted2003-11-30 21:05 UTC
Fromjeff at beefstudio dot com
Assignedrichard
StatusClosed
PackageHTML_TreeMenu
PHP Version4.3.3
OSMac OSX.3.1
Roadmaps(Not assigned)

Comments

[2003-11-30 21:05 UTC] jeff at beefstudio dot com

Description:
------------
At the end of TreeMenu.js there is some code to detect Konqueror which breaks the detection for other browsers.

The code is:

// Patch from Harald Fielker
if (agt.indexOf('konqueror')) {
...

which will return -1 for any browser other than konqueror.

Simple fix:

if (agt.indexOf('konqueror') != -1) {
...