equal
deleted
inserted
replaced
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); |