SF Bug #3288434 - Security bug

This commit is contained in:
Deon George 2011-04-26 22:35:43 +10:00
parent c28a609799
commit fc5885b0d9

View File

@ -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]))