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  863c99f8928d727b9c5cbab2a0d3b034e894655a (commit)
      from  fe105b3fab0a5dea853dd2e68af601499580302e (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 -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=863c99f8928d727b9c5cbab2a0d3b034e894655a

commit 863c99f8928d727b9c5cbab2a0d3b034e894655a
Author: Franck Villaume <[email protected]>
Date:   Sun Jan 10 16:14:29 2016 +0100

    docman: use file_exists rather than switch to perform actions

diff --git a/src/www/docman/index.php b/src/www/docman/index.php
index 38a72f6..5f5ad65 100644
--- a/src/www/docman/index.php
+++ b/src/www/docman/index.php
@@ -69,33 +69,8 @@ $childgroup_id = getIntFromRequest('childgroup_id');
 
 /* everything sounds ok, now let do the job */
 $action = getStringFromRequest('action');
-switch ($action) {
-       case 'addfile':
-       case 'addsubdocgroup':
-       case 'deldir':
-       case 'delfile':
-       case 'editdocgroup':
-       case 'editfile':
-       case 'emptytrash':
-       case 'enforcereserve':
-       case 'forcereindexenginesearch':
-       case 'getfile':
-       case 'injectzip':
-       case 'lock':
-       case 'monitorfile':
-       case 'monitordirectory':
-       case 'movefile':
-       case 'releasefile':
-       case 'reservefile':
-       case 'trashdir':
-       case 'trashfile':
-       case 'updatecreateonline':
-       case 'updateenginesearch':
-       case 'updatewebdavinterface':
-       case 'validatefile': {
-               include ($gfcommon.'docman/actions/'.$action.'.php');
-               break;
-       }
+if (file_exists($gfcommon.'docman/actions/'.$action.'.php')) {
+       include ($gfcommon.'docman/actions/'.$action.'.php');
 }
 
 $start = getIntFromRequest('start', 0);

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

Summary of changes:
 src/www/docman/index.php | 29 ++---------------------------
 1 file changed, 2 insertions(+), 27 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to