From fc5885b0d973cf5cf8c321e259db5a1d73ee02b9 Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 26 Apr 2011 22:35:43 +1000 Subject: [PATCH] SF Bug #3288434 - Security bug --- lib/ds.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ds.php b/lib/ds.php index 9bd9f2b..281c479 100644 --- a/lib/ds.php +++ b/lib/ds.php @@ -675,7 +675,7 @@ class Datastore { debug_log('Entered (%%)',17,0,__FILE__,__LINE__,__METHOD__,$fargs); # If no index defined, then pick the lowest one. - if (is_null($index)) + if (is_null($index) || ! trim($index) || ! is_numeric($index)) $index = min($this->GetServerList())->getIndex(); if (! isset($this->objects[$index]))