]> git.sur5r.net Git - contagged/blobdiff - index.php
contrib script for importing Thunderbird LDIF exports
[contagged] / index.php
index 26c591204e3374081264d153b2a7abca04131ce3..e41237a56767aaa3517a7df551707844fc55b468 100644 (file)
--- a/index.php
+++ b/index.php
@@ -25,7 +25,7 @@
   $list = '';
   if(count($result)==1 && $_REQUEST['search']){
     //only one result on a search -> display page
-    header("Location: entry.php?dn=".$result[0]['dn']);
+    header("Location: entry.php?dn=".rawurlencode($result[0]['dn']));
     exit;
   }elseif(count($result)){
     $keys = array_keys($result);
                                 '('.$FIELDS['phone'].'='.$filter.')'.
                                 '('.$FIELDS['homephone'].'='.$filter.')'.
                             ')'.
-                            '('.$FIELDS['homephone'].'='.$filter.')'.
+                            '('.$FIELDS['mobile'].'='.$filter.')'.
                         ')'.
                     ')';
     }elseif(!empty($search)){