Bug in function CreateReturnLink (class.module.inc.php) - fix included
Posted: Sat Jun 24, 2006 10:44 am
I spotted a bug whilist using the news module:
http://forum.cmsmadesimple.org/index.ph ... 359.0.html
a quick dig into the code reveals that the function reateReturnLink in class.module.inc.php is calling the GetURL function with the optional parameter false.
This prevents the checking iof modrewrite being enabled in GetURL causing the error linked above.
So you simply need to remove the optional parameter and GetURL and CreateReturnLink will function correctly (this is how function RedirectContent in the same file uses GetURL).
Cheers Nick
http://forum.cmsmadesimple.org/index.ph ... 359.0.html
a quick dig into the code reveals that the function reateReturnLink in class.module.inc.php is calling the GetURL function with the optional parameter false.
This prevents the checking iof modrewrite being enabled in GetURL causing the error linked above.
So you simply need to remove the optional parameter and GetURL and CreateReturnLink will function correctly (this is how function RedirectContent in the same file uses GetURL).
Cheers Nick