* Raising Extbase and Fluid version numbers to 0.9.12
[Packages/TYPO3.CMS.git] / typo3 / alt_main.php
old mode 100755 (executable)
new mode 100644 (file)
index d13950f..651df5e
@@ -2,7 +2,7 @@
 /***************************************************************
 *  Copyright notice
 *
-*  (c) 1999-2008 Kasper Skaarhoj (kasperYYYY@typo3.com)
+*  (c) 1999-2009 Kasper Skaarhoj (kasperYYYY@typo3.com)
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
@@ -63,8 +63,6 @@
 
 require ('init.php');
 require ('template.php');
-require_once (PATH_t3lib.'class.t3lib_loadmodules.php');
-require_once (PATH_t3lib.'class.t3lib_basicfilefunc.php');
 require_once ('class.alt_menu_functions.inc');
 $LANG->includeLLFile('EXT:lang/locallang_misc.xml');
 
@@ -185,7 +183,7 @@ class SC_alt_main {
        function typoSetup()    {       //
                this.PATH_typo3 = "'.$pt3.'";
                this.PATH_typo3_enc = "'.rawurlencode($pt3).'";
-               this.username = "'.$BE_USER->user['username'].'";
+               this.username = "'.htmlspecialchars($BE_USER->user['username']).'";
                this.uniqueID = "'.t3lib_div::shortMD5(uniqid('')).'";
                this.navFrameWidth = 0;
        }
@@ -479,7 +477,7 @@ class SC_alt_main {
                if ($module) {
                        $this->mainJScode.='
                // open in module:
-       top.goToModule(\''.$module.'\',false,\''.$params.'\');
+       top.goToModule(\''.$module.'\',false,'.t3lib_div::quoteJSvalue($params).');
                        ';
                }
        }