Jump to content

Unexpected Characters in URL address


phrosty

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!
Link to comment
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]
Link to comment
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?
Link to comment
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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.