Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3269
7071.diff
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:25 PM
2014-11-21 21:25:46 (UTC+0)
Size
603 B
Referenced Files
None
Subscribers
None
7071.diff
View Options
Index: Article.php
===================================================================
--- Article.php (revision 16139)
+++ Article.php (working copy)
@@ -362,7 +362,12 @@
wfDebug( __METHOD__." failed to get page data linked to revision id $oldid\n" );
return false;
}
+ $origtitle = $this->mTitle;
$this->mTitle = Title::makeTitle( $data->page_namespace, $data->page_title );
+ # ensure that we got a revision of the right page
+ if( !$this->mTitle->equals( $origtitle ) ) {
+ return false;
+ }
$this->loadPageData( $data );
} else {
if( !$this->mDataLoaded ) {
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2838
Default Alt Text
7071.diff (603 B)
Attached To
Mode
T9071: Pages can be edited with an oldid from another page
Attached
Detach File
Event Timeline
Log In to Comment