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]) ) {