From 4d8e80dd10ba1f912a921ece0b54c4cbaedc67f7 Mon Sep 17 00:00:00 2001 From: Christian Clark Date: Thu, 28 Aug 2014 16:15:28 -0400 Subject: [PATCH] v1.2.3: Fixed a bug in the ssv class. --- Change_Log.txt | 1 + README.rtf | 2 +- framework/plugins/ssv.class.php | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Change_Log.txt b/Change_Log.txt index fbc3319..8542074 100755 --- a/Change_Log.txt +++ b/Change_Log.txt @@ -3,6 +3,7 @@ *** phpOpenFW 1.x Change Log ***************************************************************** ***************************************************************** + ----------------------------------------------------------------- v1.2.3 ----------------------------------------------------------------- diff --git a/README.rtf b/README.rtf index 8b09ec0..dd61894 100755 --- a/README.rtf +++ b/README.rtf @@ -1,4 +1,4 @@ -{\rtf1\ansi\ansicpg1252\cocoartf1265\cocoasubrtf190 +{\rtf1\ansi\ansicpg1252\cocoartf1265\cocoasubrtf210 \cocoascreenfonts1{\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \margl1440\margr1440\vieww27880\viewh19480\viewkind0 diff --git a/framework/plugins/ssv.class.php b/framework/plugins/ssv.class.php index ea0bb3b..f9b18ac 100755 --- a/framework/plugins/ssv.class.php +++ b/framework/plugins/ssv.class.php @@ -8,7 +8,7 @@ * @author Christian J. Clark * @copyright Copyright (c) Christian J. Clark * @license http://www.gnu.org/licenses/gpl-2.0.txt -* @version Started: 2-25-2008, Last updated: 8-27-2014 +* @version Started: 2-25-2008, Last updated: 8-28-2014 **/ //*************************************************************** @@ -262,8 +262,8 @@ public function validate() break; case 'custom': - if ($var_val1) { eval("\{$vr} = ({$var_val1});"); } - else if ($var_val2) { eval("\{$vr} = ({$var_val2});"); } + if ($var_val1) { eval("\$vr = ($var_val1);"); } + else if ($var_val2) { eval("\$vr = ($var_val2);"); } else { trigger_error('[Server Side Validation]::validate() - Invalid custom expression!'); } break;