From df7d1fcb73fb5dcc4dc8730dcf0ff08cf7361dea Mon Sep 17 00:00:00 2001 From: onli Date: Tue, 13 Dec 2011 19:11:07 +0100 Subject: [PATCH] bugfix: disappearing netries when title starting with a number and using no archive-prefix --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index f2da7166..c763b3ef 100644 --- a/index.php +++ b/index.php @@ -252,8 +252,8 @@ if (preg_match(PAT_ARCHIVES, $uri, $matches) || isset($serendipity['GET']['range } echo $data; -} else if ( (preg_match(PAT_COMMENTSUB, $uri, $matches) || - preg_match(PAT_PERMALINK, $uri, $matches) || +} else if ((preg_match(PAT_PERMALINK, $uri, $matches) || + preg_match(PAT_COMMENTSUB, $uri, $matches) || isset($serendipity['GET']['id']) || isset($_GET['p'])) && !preg_match('/autosave/', $serendipity['uriArguments'][1]) ) {