[Fusionforge-commits] FusionForge branch Branch_5_1 updated. a7d48bfdf710c147e32670473e593ad0467376bf

Thorsten Glaser mirabilos at fusionforge.org
Thu Jan 8 15:31:14 CET 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, Branch_5_1 has been updated
       via  a7d48bfdf710c147e32670473e593ad0467376bf (commit)
      from  9e5067c33804af319d5225d6b81c4a4d11987e88 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a7d48bfdf710c147e32670473e593ad0467376bf
Author: Thorsten Glaser <t.glaser at tarent.de>
Date:   Thu Jan 8 15:30:39 2015 +0100

    backport from Evolvis: SECURITY: Disable Mediawiki if group stops using it
    
    (the assignment to $group_id benefits exit_error())

diff --git a/src/plugins/mediawiki/www/LocalSettings.php b/src/plugins/mediawiki/www/LocalSettings.php
index b2cd2fd..ef71a5d 100644
--- a/src/plugins/mediawiki/www/LocalSettings.php
+++ b/src/plugins/mediawiki/www/LocalSettings.php
@@ -68,6 +68,10 @@ if ( $wgCommandLineMode ) {
         }
 }
 $g = group_get_object_by_name($fusionforgeproject) ;
+$group_id = $g->getID();
+if (!$g->usesPlugin('mediawiki')) {
+	exit_error(sprintf(_('Project %s does not use the Mediawiki plugin'), $fusionforgeproject));
+}
 $wgSitename         = $g->getPublicName() . " Wiki";
 $wgScriptPath       = "/plugins/mediawiki/wiki/$fusionforgeproject" ;
 

-----------------------------------------------------------------------

Summary of changes:
 src/plugins/mediawiki/www/LocalSettings.php |    4 ++++
 1 file changed, 4 insertions(+)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list