Log in

View Full Version : New lines in urls


Bellardia
08-05-2008, 06:19 AM
While making a plugin, I noticed that vBulletin seems to break long urls(just like it does with a very long string aka 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaa').

Because of this, when it's exploded, sometimes the URL fragments, making it impossible for me to target with a regular expression. Is there any way to remove this break before I explode the data?

Or at least, is there any way for me to target this 'character' in php because I can't seem to figure out what it is.

Opserty
08-05-2008, 08:17 AM
$urlvar = str_replace("\n", '', $urlvar);


Bit of a guess but maybe worth a try. :p

Bellardia
08-05-2008, 01:36 PM
Already tried unfortunatly ):