Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3282
thirdpatch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 9:26 PM
2014-11-21 21:26:00 (UTC+0)
Size
855 B
Referenced Files
None
Subscribers
None
thirdpatch
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2851
Default Alt Text
thirdpatch (855 B)
Attached To
Mode
T9369: Allow "Show Changes" without requiring edit token.
Attached
Detach File
Event Timeline
Log In to Comment