& in login module

Started by DAB Empire, November 08, 2005, 06:43:04 PM

Previous topic - Next topic

DAB Empire

How come the links on all my sites are like:

http://www.domain.com/index.php?option=com_smf&Itemid=175&

Instead of something like:

http://www.domain.com/index.php?option=com_smf&Itemid=175&

Or, should the & be in there?  It's usually on login, register and logout links.

I went into the mod_smf_login.php file and changed things like:

$myurl = $mosConfig_live_site ."/". basename($_SERVER['PHP_SELF'])."?option=com_smf&Itemid=" . $row[0]."&";

to:

$myurl = $mosConfig_live_site ."/". basename($_SERVER['PHP_SELF'])."?option=com_smf&Itemid=" . $row[0]."&";

And I still get it.  Just curious.

chadness

They should get translated over as &.  & is just ASCII shortcut code for the ampersand symbol, &.  The reason you don't want to use just &, is that in html any & is supposed to be declarations of code.  Generally, browsers are smart enough to translate it correctly, if there isn't any proper code behind the &, but it's not the correct way to code it.

DAB Empire

I know that it is the code for the & sign.  However, it is producing both (&).  I've checked a few of my sites and my friends adn they all do it.  Is that how it is for everyone else/supposed to be or did we goof something on all of the sites?

Orstio

It is a problem with the redirection on form submission.  While it doesn't cause any problems on most servers, it does look odd.  This is fixed in 3.20.

DAB Empire


Advertisement: