ajax.php
changeset 22 d0314575e2f0
parent 21 663fcf528726
child 28 dd2edcdc6c03
equal deleted inserted replaced
21:663fcf528726 22:d0314575e2f0
   121       if(!$name) die('userlist = new Array(); namelist = new Array(); errorstring=\'Invalid URI\'');
   121       if(!$name) die('userlist = new Array(); namelist = new Array(); errorstring=\'Invalid URI\'');
   122       $nd = RenderMan::strToPageID($name);
   122       $nd = RenderMan::strToPageID($name);
   123       $c = 0;
   123       $c = 0;
   124       $u = Array();
   124       $u = Array();
   125       $n = Array();
   125       $n = Array();
       
   126       
       
   127       $name = sanitize_page_id($name);
       
   128       $name = str_replace('_', ' ', $name);
       
   129       
   126       for($i=0;$i<sizeof($paths->pages)/2;$i++)
   130       for($i=0;$i<sizeof($paths->pages)/2;$i++)
   127       {
   131       {
   128         if( ( 
   132         if( ( 
   129             preg_match('#'.preg_quote($name).'(.*)#i', $paths->pages[$i]['name']) ||
   133             preg_match('#'.preg_quote($name).'(.*)#i', $paths->pages[$i]['name']) ||
   130             preg_match('#'.preg_quote($name).'(.*)#i', $paths->pages[$i]['urlname']) ||
   134             preg_match('#'.preg_quote($name).'(.*)#i', $paths->pages[$i]['urlname']) ||