PHP 4.0 Bug #3720: URL Rewriting is parsing incorrectly

From: Date: Fri, 03 Mar 2000 21:08:10 +0000
Subject: PHP 4.0 Bug #3720: URL Rewriting is parsing incorrectly
Groups: php.dev 
Request: Send a blank email to php-dev+get-16375@lists.php.net to get a copy of this message
From: jeremyc@linuxmall.com Operating system: Linux 2.2.12 ( TurboLinux 4.0 ) PHP version: 4.0 Beta 4 Patch Level 1 PHP Bug Type: Session related Bug description: URL Rewriting is parsing incorrectly I have --enabled-trans-sid enabled, and cookies disabled via php.ini Below is a snippet of one of our webpages.. minus the php code. When viewed in a browser the SID that is automatically appended to the HREFs is put in the incorrect position. Look for the first occurance of this link: <A HREF="/customer/proglist?PROGRAM_TYPE_CD=CN"> PHP4 rewrites it as follows: <A HREF="/customer/proglist?PROGRAM_TYPE_CD=&SID=b6ea75192f08aa596d97b4be556a0466CN"> The 'CN' is now at the end of the URL. It was actually much worse but removing any spaces at the end of all lines in the page seemed to make the parsing work better, but not perfect in all cases. <?php ?> <CENTER><H2><STRONG> LinuxMall.com Consultant Program </STRONG></H2> </CENTER> <P> The LinuxMall.com Consultant Referral program creates a worldwide catalog of consultants for people needing help with Linux related issues. We refer people wanting to pay for help to Consultants who can help them. <P> Visitors to LinuxMall.com will be able to find your contact information in <A HREF="/customer/proglist?PROGRAM_TYPE_CD=CN">the Consultant listing</A>. You may access and change your listing at any time. <P> Provided your contact information is kept current, and your customers do not make legitimate complaints about you, you will stay listed publicly. There are no fees of any sort. <P> <A HREF="/customer/program?PROGRAM_TYPE_CD=CN">Sign up</A> to become listed! <P> We ask that you sign up for our <A HREF=/program/associate>LinuxMall.com Associate</A> program as well, but do not require it. You may also sign up for any of our other programs as you find they apply. <P> <?php ?>

« previous php.dev (#16375) next »