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 » PEAR » PEAR_Frontend_Web » Bug #2603

PEAR_Frontend_Web creates bad URL

Details

Submitted2004-10-23 21:33 UTC
Fromdave at mausner dot us
StatusBogus
PackagePEAR_Frontend_Web
PHP Version4.3.9
OSw2k
Roadmaps(Not assigned)

Comments

[2004-10-23 21:33 UTC] dave at mausner dot us

Description:
------------
trying pear_frontend_web:
IE6 observed trying to load URL such as:
http://127.0.0.1/C/PHP/php-4.3.9-Win32/index.php?command=list-all&enableJS=1?img=infoplus?img=infoplus?command=list-all&enableJS=1?img&pageID=2?command=list-all&enableJS=1?img&pageID=3

as href or src value in <link> <script> and <img> contexts.

this is an incorrect URL format. it loads the page recusrively instead of loading just the target script or image.

bad result: no javascript loads, no images load, page bombs.

Reproduce code:
---------------
0. windows 2000 or similar
1. fresh install php 4.3.9 (from zip) + badblue 2.54 (installer)
2. ran go_pear.php 0.2.2 in IE6
3. set prefix=c:/php/php-4.3.9-win32
4. set php_dir=c:/php/php-4.3.9-win32/pear
5. ran c:/php/php-4.3.9-win32/index.php
6. runs forever then bombs with misleading error,
displayed page sometimes has no style.css applied

Expected result:
----------------
src and href URLS should just include the relative path to the .js, .gif, .css files, not the home page reference and URL arguments!

Actual result:
--------------
Install / Upgrade / Remove PEAR Packages

[ list installed packages ] [ list not installed packages ] [ list avail. upgrades ]

<< Back Displaying 6 to 10 of 33 Categories Next >>
-------------------------------------------------------

...completely un-styled (no green stripes nor PEAR logo nor icons.

[2005-08-21 03:42 UTC] dave at mausner dot us

badblue web server conspires to supply a value of PHP_SELF which includes the original URL parameters -- it should omit the substring beginning with the "?".