Jump to content

Archived

This topic is now archived and is closed to further replies.

phrosty

Unexpected Characters in URL address

Recommended Posts

I've been working on a script for my site and I noticed anytime I use the AOL browser (only when I use the AOL browser, does not happen when I use mozilla or stand alone IE) to view my website I get the following text at the end of my URL

?ABCDEFGH

for example:

instead of the proper url

[b]/page.php?type=name&cityid=6&on=a[/b]

this comes up instead

[b]/page.php?type=name&cityid=6&on=a?ABCDEFGH[/b]


The weird thing is the ?ABCDEFGH doesn't show up all the time, but when it does it screws up the code that needs to read [b]on=a[/b]

Is there any script that will search for the ?ABCDEFGH and remove it from the URL address? or anything else that can be done?

Any help would be EXTREMELY appreciated!

Share this post


Link to post
Share on other sites
Thats quite interesting, does that only happen on the site you are building, or any site that you happen to visit with the AOL browser?

As a fix, I guess you could run something this?:[code]<?php
foreach($_GET as $key => $val) {
    $_GET[$key] = str_replace("?ABCDEFGH","",$val);
}
?>[/code]

Share this post


Link to post
Share on other sites
[!--quoteo(post=366849:date=Apr 20 2006, 11:06 AM:name=SemiApocalyptic)--][div class=\'quotetop\']QUOTE(SemiApocalyptic @ Apr 20 2006, 11:06 AM) [snapback]366849[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Thats quite interesting, does that only happen on the site you are building, or any site that you happen to visit with the AOL browser?

As a fix, I guess you could run something this?:[code]<?php
foreach($_GET as $key => $val) {
    $_GET[$key] = str_replace("?ABCDEFGH","",$val);
}
?>[/code]
[/quote]

Hey thanks for your help...yea it only happens for the website I'm building which is weird...so I'm not sure if it has something to do with my code or what. But since it only happens with AOL I was thinking maybe it has to do with their proxy servers or something, like mayb they are messing up transmission of the code or something.

I have a question since I'm pretty new to PHP...does the above code check the URL address bar for the ?ABCDEFGH or does it check text in the code?

Share this post


Link to post
Share on other sites
[!--quoteo(post=367321:date=Apr 21 2006, 10:14 PM:name=phrosty)--][div class=\'quotetop\']QUOTE(phrosty @ Apr 21 2006, 10:14 PM) [snapback]367321[/snapback][/div][div class=\'quotemain\'][!--quotec--]I have a question since I'm pretty new to PHP...does the above code check the URL address bar for the ?ABCDEFGH or does it check text in the code?
[/quote]
It checks everything after the first "?" in the URL.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.