PHP Classes

Possible bug

Recommend this page to a friend!

      PHP Input Filter  >  All threads  >  Possible bug  >  (Un) Subscribe thread alerts  
Subject:Possible bug
Summary:Problem in the inputfilter
Messages:2
Author:carlo
Date:2011-01-27 16:14:58
Update:2011-01-28 11:06:48
 

  1. Possible bug   Reply   Report abuse  
Picture of carlo carlo - 2011-01-27 16:14:58
Hello
This is the first time I write here!
I'm looking for this class witch works very well.
But I think I found a possible bug on the code.

So if I write something very common to be checked by the filter on some textarea like this:

---
<a href="http://somesite.com?var1=1&var2=2">Hello</a>
---


It cuts the address from "http://somesite.com?var1=1&var2=2" to this "http://somesite.com?var1"

So the resulting html code is this.

---
<a href="http://somesite.com?var1">Hello</a>
---


This because on line 200 of file (class.inputfilter.php) it splits a string composed with '=' and every parameters of the address has splitted too!

I hope it's clear for everyone.
Thanks
Carlo

  2. Re: Possible bug   Reply   Report abuse  
Picture of carlo carlo - 2011-01-28 11:06:48 - In reply to message 1 from carlo
I solved the problem simply inserting a '2' as 3td argument of splitting function 'explode'.


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

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

Bye Bye
Carlo