PHP Classes

Dynamic URLs being parsed as additional attributes?

Recommend this page to a friend!

      PHP Input Filter  >  All threads  >  Dynamic URLs being parsed as...  >  (Un) Subscribe thread alerts  
Subject:Dynamic URLs being parsed as...
Summary:Dynamic URLs being parsed as additional attributes?
Messages:3
Author:Jeremy Hoke
Date:2007-04-14 17:26:58
Update:2007-04-23 09:33:18
 

  1. Dynamic URLs being parsed as...   Reply   Report abuse  
Picture of Jeremy Hoke Jeremy Hoke - 2007-04-14 17:26:58
Hello.

First of all, thank you for an excellent piece of code - exactly the sort of thing I was looking for and perfect for my needs in every way.

Well... almost perfect.

It seems that the Input Filter is treating the equals sign in dynamic URLs as an additional attribute of the <a> tag. For example:

mydomain.com/page.php?page=1

The Input Filter seems to be parsing that URL and returning the following:

mydomain.com/page.php?page

Am I doing something wrong?

Any advice you give me on this would be immensely appreciated.

Thanks for all your hard work on this class.


Kind Regards,
Jeremy

  2. Re: Dynamic URLs being parsed as...   Reply   Report abuse  
Picture of Szymon Kosok Szymon Kosok - 2007-04-23 08:26:38 - In reply to message 1 from Jeremy Hoke
Yup. I have same problem. :( I'll look on source code of Input Filter, maybe will find something to fix.

  3. Re: Dynamic URLs being parsed as...   Reply   Report abuse  
Picture of Szymon Kosok Szymon Kosok - 2007-04-23 09:33:20 - In reply to message 2 from Szymon Kosok
Ok, probably found it.

Change:

$attrSubSet = explode('=', trim($attrSet[$i]));

to

$attrSubSet = explode('=', trim($attrSet[$i]), 2);

Works for me.