Loading
http://www.404-design.net/aim/subprofile.php?sn=lps (in an AIM window) works; but this does not:
http://www.404-design.net/aim/subprofile.php?sn=l ps
for the reason (from what others have said) that AIM does not convert spaces into %20s in the URL, so using %n (replaces %n with their screen name) in this:
http://www.404-design.net/aim/subprofile.php?sn=%n
works, until you run into someone with a space in their name, instead of loading the subprofile, it gives you the "Error Loading Content" crap.
I tried using str_replace, but it's not seeming to work.. any ideas?
AIM Screen Name Spaces
Moderator: General Moderators
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
- scorphus
- Forum Regular
- Posts: 589
- Joined: Fri May 09, 2003 11:53 pm
- Location: Belo Horizonte, Brazil
- Contact:
Or take a look to [php_man]urlencode[/php_man]():
One output:
Hope that works with AIM.
Cheers,
Scorphus.
Code: Select all
<pre>
<?php
print_r($_GET);
echo '<a href="' . $_SERVER['PHP_SELF'] . '?test=' . urlencode('test test % á @#' . $_GET['test']) . '">next</a>';
?>
</pre>Code: Select all
<pre>
Array
(
їtest] => test test % á @#
)
<a href="/lab/get.php?test=test+test+%25+%E1+%40%23test+test+%25+%E1+%40%23">next</a></pre>Cheers,
Scorphus.
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
whoever clicked those links, can u please leave ur browser name or go to http://www.404-design.net/aim/test.php
cuz my if statement says:
which includes most browsers (mozilla, netscape, ie, and a few others), but i guess it doesnt cover one of your browsers (because it still saved the screen name.. (meaning the loop didnt run..)
thanks
cuz my if statement says:
Code: Select all
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var navName = navigator.appName;
if (navName == "Microsoft Internet Explorer" || navName == "Netscape") {
window.location = "error.php?e=browser";
}
// End -->
</script>thanks