SF Bug #3288434 - Security bug
This commit is contained in:
parent
c28a609799
commit
fc5885b0d9
@ -675,7 +675,7 @@ class Datastore {
|
|||||||
debug_log('Entered (%%)',17,0,__FILE__,__LINE__,__METHOD__,$fargs);
|
debug_log('Entered (%%)',17,0,__FILE__,__LINE__,__METHOD__,$fargs);
|
||||||
|
|
||||||
# If no index defined, then pick the lowest one.
|
# 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();
|
$index = min($this->GetServerList())->getIndex();
|
||||||
|
|
||||||
if (! isset($this->objects[$index]))
|
if (! isset($this->objects[$index]))
|
||||||
|
Loading…
Reference in New Issue
Block a user