Code: Select all
--- index.php 2009-06-11 14:14:15.000000000 +0200
+++ index.php.new 2011-09-09 08:31:20.959898811 +0200
@@ -251,10 +251,14 @@
}
echo $data;
-} else if ( preg_match(PAT_COMMENTSUB, $uri, $matches) ||
+} else if ( (preg_match(PAT_COMMENTSUB, $uri, $matches) ||
preg_match(PAT_PERMALINK, $uri, $matches) ||
isset($serendipity['GET']['id']) ||
- isset($_GET['p']) ) {
+ isset($_GET['p']))
+ /* Don't Match XMLHttpRequest from Autosave Plugin */
+ && !preg_match('/autosave/', $serendipity['uriArguments'][1])
+ )
+{
$serendipity['view'] = 'entry';
if (isset($serendipity['GET']['id'])) {