r48579 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48578‎ | r48579 | r48580 >
Date:14:04, 19 March 2009
Author:yaron
Status:deferred
Tags:
Comment:
Added check to ensure that user is allowed to read page being accessed
Modified paths:
  • /trunk/extensions/ExternalData/ED_GetData.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ExternalData/ED_GetData.php
@@ -25,6 +25,8 @@
2626 $title = Title::newFromText( $page_name );
2727 if( is_null( $title ) )
2828 return;
 29+ if( ! $title->userCanRead() )
 30+ return;
2931 $article = new Article( $title );
3032 $page_text = $article->fetchContent();
3133 // Remove <noinclude> sections and <includeonly> tags from text

Status & tagging log