--- a/includes/functions.php Mon Dec 03 18:45:37 2007 -0500
+++ b/includes/functions.php Tue Dec 11 19:15:26 2007 -0500
@@ -2223,7 +2223,6 @@
function paginate_array($q, $num_results, $result_url, $start = 0, $perpage = 10, $header = '', $footer = '')
{
global $db, $session, $paths, $template, $plugins; // Common objects
- $parser = $template->makeParserText($tpl_text);
$num_pages = ceil ( $num_results / $perpage );
$out = '';
$i = 0;
@@ -2668,7 +2667,8 @@
function sanitize_tag($tag)
{
$tag = strtolower($tag);
- $tag = preg_replace('/[^\w _@\$%\^&-]+/', '', $tag);
+ $tag = preg_replace('/[^\w @\$%\^&-]+/', '', $tag);
+ $tag = str_replace('_', ' ', $tag);
$tag = trim($tag);
return $tag;
}