From c11685e482d554fc5dc7a0f1e85ecb518ae27953 Mon Sep 17 00:00:00 2001 From: secretr Date: Wed, 27 Oct 2010 11:26:21 +0000 Subject: [PATCH] EONE-134 - prevent bad e_module to cause critical damage --- class2.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/class2.php b/class2.php index 7fe0878a7..c314e225f 100644 --- a/class2.php +++ b/class2.php @@ -738,6 +738,8 @@ if (!class_exists('e107table', false)) //DEPRECATED, BC, call the method only when needed, $e107->ns caught by __get() $ns = e107::getRender(); //TODO - find & replace $ns, $e107->ns +// EONE-134 - bad e_module could destroy e107 instance +$e107 = e107::getInstance(); $e107->ban(); if(varset($pref['force_userupdate']) && USER && !isset($_E107['no_forceuserupdate']))