Revision: 48579
Author: yaron
Date: 2009-03-19 14:04:45 +0000 (Thu, 19 Mar 2009)
Log Message:
-----------
Added check to ensure that user is allowed to read page being accessed
Modified Paths:
--------------
trunk/extensions/ExternalData/ED_GetData.php
Modified: trunk/extensions/ExternalData/ED_GetData.php
===================================================================
--- trunk/extensions/ExternalData/ED_GetData.php 2009-03-19 12:34:14 UTC
(rev 48578)
+++ trunk/extensions/ExternalData/ED_GetData.php 2009-03-19 14:04:45 UTC
(rev 48579)
@@ -25,6 +25,8 @@
$title = Title::newFromText( $page_name );
if( is_null( $title ) )
return;
+ if( ! $title->userCanRead() )
+ return;
$article = new Article( $title );
$page_text = $article->fetchContent();
// Remove <noinclude> sections and <includeonly> tags from text
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs