Topic: Problem with $_SERVER['REQUEST_URI'] & $_SERVER['PHP_SELF']
Many mods and plugins use
<?php echo $_SERVER['REQUEST_URI'] ?>
or
<?php echo $_SERVER['PHP_SELF'] ?>
as part of the action attribute of forms (ex: action="<?php echo $_SERVER['PHP_SELF'] ?>?foo=bar").
However, this causes a problem for me - my forums are located at "http://mcawesome.hysellstuff.com/forum/" (the subdomain "mcawesome.hysellstuff.com" points to "hysellstuff.com/awesome/") - but rather than generating a URL pointing to "forum/somescript.php", these variables both point to "//awesome///forum/somescript.php".
The result is that the form action is "http://awesome///forum/somecript.php" which causes my browser (Firefox) to do a Google I'm feeling lucky search that takes me too "http://www.awesomelibrary.org/".
Is there any way to fix this? I mean, I can go into the plugins and mods and edit form actions to point to the correct location, but this gets old quickly.
Thanks in advance for your help.