A quick-fix for the reported exploit with themes.
authorgraf25 <graf25@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 29 Mar 2002 05:28:05 +0000 (05:28 +0000)
committergraf25 <graf25@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 29 Mar 2002 05:28:05 +0000 (05:28 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2645 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/validate.php

index 60af3509c4a0a8951319eb823b13107b8d6f7943..3d6d20e654ddb907e9511ab15e2de828b42d63ae 100644 (file)
@@ -61,6 +61,15 @@ if (isset($send)
 * Include them down here instead of at the top so that all config
 * variables overwrite any passed in variables (for security).
 */
+
+/**
+ * Reset the $theme() array in case a value was passed via a cookie.
+ * This is until theming is rewritten.
+ */
+global $theme;
+unset($theme);
+$theme=array();
+
 require_once('../config/config.php');
 require_once('../src/load_prefs.php');
 require_once('../functions/page_header.php');