# HG changeset patch # User Dan # Date 1188908748 14400 # Node ID 47393c6619ea53ec9e5ea51b2059b4473addbc5a # Parent 6f357b951f7a44d7272f7a795a0ec51fa46fcc45 Nothing special, just syncing to Scribus, several bugs have been found with GET forms and a fix is in the works diff -r 6f357b951f7a -r 47393c6619ea includes/template.php --- a/includes/template.php Sun Sep 02 00:33:22 2007 -0400 +++ b/includes/template.php Tue Sep 04 08:25:48 2007 -0400 @@ -731,6 +731,7 @@ 'ADMIN_SID_AMP'=>$asa, 'ADMIN_SID_AMP_HTML'=>$ash, 'ADMIN_SID_AUTO'=>$as2, + 'ADMIN_SID_RAW'=> ( is_string($session->sid_super) ? $session->sid_super : '' ), 'ADDITIONAL_HEADERS'=>$this->additional_headers, 'COPYRIGHT'=>RenderMan::parse_internal_links(getConfig('copyright_notice')), 'TOOLBAR_EXTRAS'=>$this->toolbar_menu, diff -r 6f357b951f7a -r 47393c6619ea plugins/SpecialSearch.php --- a/plugins/SpecialSearch.php Sun Sep 02 00:33:22 2007 -0400 +++ b/plugins/SpecialSearch.php Tue Sep 04 08:25:48 2007 -0400 @@ -84,6 +84,18 @@ } } $q = trim($q); + + if ( !empty($q) && !isset($_GET['search']) ) + { + list($pid, $ns) = RenderMan::strToPageID($q); + $pid = sanitize_page_id($pid); + $key = $paths->nslist[$ns] . $pid; + if ( isPage($key) ) + { + redirect(makeUrl($key), 'Results', 'found page', 0); + } + } + $template->header(); if(!empty($q)) { @@ -96,7 +108,7 @@ $q_tl = strtolower( str_replace('_', ' ', $q) ); $p_lc = strtolower($pg['urlname']); $p_tl = strtolower($pg['name']); - if ( strstr($p_tl, $q_tl) || strstr($p_lc, $q_lc) ) + if ( strstr($p_tl, $q_tl) || strstr($p_lc, $q_lc) && $pg['visible'] == 1 ) { echo '
'; break; @@ -229,7 +241,10 @@ ?>