includes/template.php
changeset 1061 4ef865b5f497
parent 1060 d3e12f1f9f29
child 1069 d54e7620bd3e
equal deleted inserted replaced
1060:d3e12f1f9f29 1061:4ef865b5f497
  1769       
  1769       
  1770       if ( !$params )
  1770       if ( !$params )
  1771         $params = false;
  1771         $params = false;
  1772       $escape = !empty($escape);
  1772       $escape = !empty($escape);
  1773       
  1773       
  1774       $result = makeUrlNS($namespace, $page_id, $params, $escape);
  1774       $result = makeUrlNS($namespace, sanitize_page_id($page_id), $params, $escape);
  1775       
  1775       
  1776       if ( !$post_eval )
  1776       if ( !$post_eval )
  1777       {
  1777       {
  1778         $result = str_replace('\\', '\\\\', $result);
  1778         $result = str_replace('\\', '\\\\', $result);
  1779         $result = str_replace('\'', '\\\'', $result);
  1779         $result = str_replace('\'', '\\\'', $result);