mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-16 15:33:02 +01:00
redirectWhenOnlyOneResult() : Added urlencode() of object's DN in redirect URL
This commit is contained in:
parent
fe323be9b0
commit
c39bb162d0
1 changed files with 1 additions and 1 deletions
|
@ -1046,7 +1046,7 @@ class LSsearch {
|
||||||
**/
|
**/
|
||||||
function redirectWhenOnlyOneResult() {
|
function redirectWhenOnlyOneResult() {
|
||||||
if ($this -> total == 1 && $this -> result && self::formIsSubmited()) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue