[Fusionforge-commits] FusionForge branch master updated. 9db394956568e37d00a72b2d8c85978eac9727a8

Olivier Berger olberger at fusionforge.org
Tue Apr 1 14:14:56 CEST 2014


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, master has been updated
       via  9db394956568e37d00a72b2d8c85978eac9727a8 (commit)
      from  14d415e89726f482d72a9de4822b51d055dc0340 (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 9db394956568e37d00a72b2d8c85978eac9727a8
Author: Olivier Berger <olivier.berger at telecom-sudparis.eu>
Date:   Tue Apr 1 14:14:25 2014 +0200

    Make it so that img_auth.php can be used to restrict access to uploaded files
    
    See http://www.mediawiki.org/wiki/Manual:$wgUploadPath for docs
    
    Allows setting
    $wgUploadPath = $wgScriptPath."/img_auth.php";
    in ProjectSettings.php

diff --git a/src/etc/httpd.conf.d/plugin-mediawiki.inc b/src/etc/httpd.conf.d/plugin-mediawiki.inc
index bc050f2..15cfa8f 100644
--- a/src/etc/httpd.conf.d/plugin-mediawiki.inc
+++ b/src/etc/httpd.conf.d/plugin-mediawiki.inc
@@ -2,6 +2,7 @@ RedirectMatch 301 ^(/plugins/mediawiki/wiki/[-a-zA-Z0-9_]*)/*$ $1/index.php
 AliasMatch ^/plugins/mediawiki/wiki/[-a-zA-Z0-9_]*/api.php {core/source_path}/www/plugins/mediawiki/api.php
 AliasMatch ^/plugins/mediawiki/wiki/[-a-zA-Z0-9_]*/index.php {core/source_path}/www/plugins/mediawiki/index.php
 AliasMatch ^/plugins/mediawiki/wiki/[-a-zA-Z0-9_]*/load.php {core/source_path}/www/plugins/mediawiki/load.php
+AliasMatch ^/plugins/mediawiki/wiki/[-a-zA-Z0-9_]*/img_auth.php {core/source_path}/www/plugins/mediawiki/img_auth.php
 AliasMatch ^/plugins/mediawiki/wiki/([-a-zA-Z0-9_]*)/images/(.*) {core/data_path}/plugins/mediawiki/projects/$1/images/$2
 AliasMatch ^/plugins/mediawiki/wiki/([-a-zA-Z0-9_]*)/skins/(.*) {mediawiki/src_path}/skins/$2
 AliasMatch ^/plugins/mediawiki/wiki/([-a-zA-Z0-9_]*)/extensions/(.*) {mediawiki/src_path}/extensions/$2
diff --git a/src/plugins/mediawiki/www/LocalSettings.php b/src/plugins/mediawiki/www/LocalSettings.php
index 39f23fa..194de00 100644
--- a/src/plugins/mediawiki/www/LocalSettings.php
+++ b/src/plugins/mediawiki/www/LocalSettings.php
@@ -50,6 +50,7 @@ while (count ($exppath) >= 4) {
 		'api.php',
 		'index.php',
 		'load.php',
+		'img_auth.php',
 	    ))) {
                 $fusionforgeproject = $exppath[3] ;
                 break ;

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

Summary of changes:
 src/etc/httpd.conf.d/plugin-mediawiki.inc   |    1 +
 src/plugins/mediawiki/www/LocalSettings.php |    1 +
 2 files changed, 2 insertions(+)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list