Jump to content


Photo

Unexpected Characters in URL address


  • Please log in to reply
3 replies to this topic

#1 phrosty

phrosty
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 20 April 2006 - 01:12 AM

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

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

this comes up instead

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


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 on=a

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!

#2 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 20 April 2006 - 03:06 PM

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?:
<?php
foreach($_GET as $key => $val) {
    $_GET[$key] = str_replace("?ABCDEFGH","",$val);
}
?>


#3 phrosty

phrosty
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 21 April 2006 - 09:14 PM

[!--quoteo(post=366849:date=Apr 20 2006, 11:06 AM:name=SemiApocalyptic)--][div class=\'quotetop\']QUOTE(SemiApocalyptic @ Apr 20 2006, 11:06 AM) View Post[/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?:
<?php
foreach($_GET as $key => $val) {
    $_GET[$key] = str_replace("?ABCDEFGH","",$val);
}
?>
[/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?

#4 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 24 April 2006 - 08:12 PM

[!--quoteo(post=367321:date=Apr 21 2006, 10:14 PM:name=phrosty)--][div class=\'quotetop\']QUOTE(phrosty @ Apr 21 2006, 10:14 PM) View Post[/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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users