Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F8499
bug33117-v2.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 22 2014, 12:01 AM
2014-11-22 00:01:48 (UTC+0)
Size
596 B
Referenced Files
None
Subscribers
None
bug33117-v2.patch
View Options
Index: includes/api/ApiQueryRevisions.php
===================================================================
--- includes/api/ApiQueryRevisions.php (revision 105848)
+++ includes/api/ApiQueryRevisions.php (working copy)
@@ -131,7 +131,7 @@
if ( !$difftoRev ) {
$this->dieUsageMsg( array( 'nosuchrevid', $params['diffto'] ) );
}
- if ( !$difftoRev->userCan( Revision::DELETED_TEXT ) ) {
+ if ( $difftoRev->isDeleted( Revision::DELETED_TEXT ) ) {
$this->setWarning( "Couldn't diff to r{$difftoRev->getID()}: content is hidden" );
$params['diffto'] = null;
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8019
Default Alt Text
bug33117-v2.patch (596 B)
Attached To
Mode
T35117: prop=revisions allows deleted text to be exposed through cache pollution
Attached
Detach File
Event Timeline
Log In to Comment