]> git.sur5r.net Git - contagged/commitdiff
Case insensitive matching when deciding if a entry is public
authorStanislav <ginermail@gmail.com>
Tue, 23 Dec 2008 08:40:22 +0000 (09:40 +0100)
committerStanislav <ginermail@gmail.com>
Tue, 23 Dec 2008 08:40:22 +0000 (09:40 +0100)
darcs-hash:20081223084022-e4d75-237d4bfc6cc8f08f57994bb45361681ef82e36b1.gz

inc/template.php

index 863f0cdc8709341dac9fb226d0b65c32476fbea3..81c0b93d4cdead9e0019e9a1f8b30027e6d1b532 100644 (file)
@@ -66,7 +66,7 @@ function tpl_entry($in){
   $out['dn']          = normalize_dn($out['dn']);
   $conf['publicbook'] = normalize_dn($conf['publicbook']);
   if($out['dn']){
-      if(strstr($out['dn'],$conf['publicbook'])){
+      if(stristr($out['dn'],$conf['publicbook'])){
           $out['type'] = 'public';
       }else{
           $out['type'] = 'private';