* -------------------------------------------------------------------- *
* Kurzbeschreibung : Sitzungsrelevante Funktionen *
* -------------------------------------------------------------------- *
- * $Revision:: $ *
- * $Date:: $ *
- * $Tag:: 0.2.1-FINAL $ *
- * $Author:: $ *
- * -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* Copyright (c) 2009 - 2013 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
// Is the variable there?
if (isSessionVariableSet($var)) {
// Then get it secured!
- $value = sqlEscapeString($GLOBALS['_SESSION'][$var]);
+ if ((isInstaller()) || (!isSqlLinkUp())) {
+ // Secure string without escaping (and compiling)
+ $value = secureString($GLOBALS['_SESSION'][$var]);
+ } else {
+ // Escape string with SQL driver
+ $value = sqlEscapeString($GLOBALS['_SESSION'][$var]);
+ }
} // END - if
// Return the value