Page MenuHomePhabricator

thirdpatch

Authored By
bzimport
Nov 21 2014, 9:26 PM
Size
855 B
Referenced Files
None
Subscribers
None

thirdpatch

Index: includes/EditPage.php
===================================================================
--- includes/EditPage.php (revision 17245)
+++ includes/EditPage.php (working copy)
@@ -433,12 +433,12 @@
// if we forced preview due to session failure.
$this->mTriedSave = !$this->preview;
- if ( $this->tokenOk( $request ) ) {
+ if ( $this->tokenOk( $request ) || $this->diff ) {
# Some browsers will not report any submit button
# if the user hits enter in the comment box.
# The unmarked state will be assumed to be a save,
# if the form seems otherwise complete.
- wfDebug( "$fname: Passed token check.\n" );
+ wfDebug( "$fname: Passed token check, or it isn't a save request.\n" );
} else {
# Page might be a hack attempt posted from
# an external site. Preview instead of saving.

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2851
Default Alt Text
thirdpatch (855 B)

Event Timeline