redirectWhenOnlyOneResult() : Added urlencode() of object's DN in redirect URL

This commit is contained in:
Benjamin Renard 2012-05-03 12:39:50 +02:00
parent fe323be9b0
commit c39bb162d0

View file

@ -1046,7 +1046,7 @@ class LSsearch {
**/
function redirectWhenOnlyOneResult() {
if ($this -> total == 1 && $this -> result && self::formIsSubmited()) {
LSsession :: redirect('view.php?LSobject='.$this -> LSobject.'&dn='.$this -> result['list'][0]['dn']);
LSsession :: redirect('view.php?LSobject='.$this -> LSobject.'&dn='.urlencode($this -> result['list'][0]['dn']));
}
return;
}