From e14b2dae7c577f2d8cbb0cccf7d1ae9b4984c42a Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Wed, 6 Jun 2007 09:11:00 +0000 Subject: [PATCH] Fix URL permalink lookup in some cases --- docs/NEWS | 2 ++ index.php | 2 +- serendipity_config.inc.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/NEWS b/docs/NEWS index 800f5bf..8b432f3 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,8 @@ Version 1.2 () ------------------------------------------------------------------------ + * Fix URL permalink lookup in some cases (garvinhicking, beta2) + * Add admin backend templates for main area and the entry editor. Falls back to default PHP output if Smarty cannot be utilized. (garvinhicking) diff --git a/index.php b/index.php index 5e53d54..7e3ccfb 100644 --- a/index.php +++ b/index.php @@ -241,7 +241,7 @@ if (preg_match(PAT_ARCHIVES, $uri, $matches) || isset($serendipity['GET']['range preg_match(PAT_PERMALINK, $uri, $matches) ) { $serendipity['view'] = 'entry'; - $matches[1] = serendipity_searchPermalink($serendipity['permalinkStructure'], $uri, $matches[1], 'entry'); + $matches[1] = serendipity_searchPermalink($serendipity['permalinkStructure'], $uri, (!empty($matches[2]) ? $matches[2] : $matches[1]), 'entry'); serendipity_rememberComment(); if (!empty($serendipity['POST']['submit']) && !isset($_REQUEST['serendipity']['csuccess'])) { diff --git a/serendipity_config.inc.php b/serendipity_config.inc.php index 663350c..b27cf96 100644 --- a/serendipity_config.inc.php +++ b/serendipity_config.inc.php @@ -42,7 +42,7 @@ if (defined('USE_MEMSNAP')) { } // The version string -$serendipity['version'] = '1.2-beta1'; +$serendipity['version'] = '1.2-beta2'; // Setting this to 'false' will enable debugging output. All alpa/beta/cvs snapshot versions will emit debug information by default. To increase the debug level (to enable Smarty debugging), set this flag to 'debug'. $serendipity['production'] = (preg_match('@\-(alpha|beta|cvs)@', $serendipity['version']) ? false : true); -- 2.39.5