Bug 7369 - Allow "Show Changes" without requiring edit token; Patch by Werdna.
authorNick Jenkins <nickj@users.mediawiki.org>
Wed, 25 Oct 2006 08:31:44 +0000 (08:31 +0000)
committerNick Jenkins <nickj@users.mediawiki.org>
Wed, 25 Oct 2006 08:31:44 +0000 (08:31 +0000)
RELEASE-NOTES
includes/EditPage.php

index 5beb3a5..b1ec47e 100644 (file)
@@ -85,6 +85,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 7663) Include language variant switcher links on Nostalgia skin
 * (bug 6531) Fix PHP fatal error on installation page with bad username input.
 * (bug 6977) Remove 404 link for autogenerated database documentation.
+* (bug 7369) Allow "Show Changes" without requiring edit token.
 
 
 == Languages updated ==
index ce224e5..1dad05e 100644 (file)
@@ -439,6 +439,9 @@ class EditPage {
                                        # The unmarked state will be assumed to be a save,
                                        # if the form seems otherwise complete.
                                        wfDebug( "$fname: Passed token check.\n" );
+                               } else if ( $this->diff ) {
+                                       # Failed token check, but only requested "Show Changes".
+                                       wfDebug( "$fname: Failed token check; Show Changes requested.\n" );
                                } else {
                                        # Page might be a hack attempt posted from
                                        # an external site. Preview instead of saving.