Automatisches sichern von Einträgen schlägt fehl

Hier können Probleme und alles andere in Deutscher Sprache gelöst werden.
chrisbra
Regular
Posts: 63
Joined: Wed Jun 08, 2005 4:12 pm

Re: Automatisches sichern von Einträgen schlägt fehl

Post by chrisbra »

Ich hab das heute mal debugged. Der folgende Patch behebt es (Works for Me):

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'])) {
Fragt mich aber nicht, warum dieser Pfad nur angesprungen wird, wenn das entryproperties Plugin aktiv ist.
laemmy
Regular
Posts: 40
Joined: Sun Nov 19, 2006 5:13 pm
Contact:

Re: Automatisches sichern von Einträgen schlägt fehl

Post by laemmy »

chrisbra wrote:Ich hab das heute mal debugged. Der folgende Patch behebt es (Works for Me):
Hab das hier mal ausprobiert. Es behebt das Problem auch bei mir. Vielen Dank für deine Hilfe. Ich werde das jetzt auch nochmal woanders testen, aber ich denk das wird da auch passen.

Gibt es noch einen weiteren Weg Danke zu sagen? Ein Amazon Wunschzettel oder eine Paypal Adresse vielleicht?

LG Silvio
Some s9y projects
chrisbra
Regular
Posts: 63
Joined: Wed Jun 08, 2005 4:12 pm

Re: Automatisches sichern von Einträgen schlägt fehl

Post by chrisbra »

Oh, das wäre ja eine nette Überraschung. Das müßte er sein, glaub ich:
http://www.amazon.de/registry/wishlist/2BKAHE8J7Z6UW
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Automatisches sichern von Einträgen schlägt fehl

Post by garvinhicking »

Hi!

Super, danke. HAbe deinen Patch mal committed!

Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply