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  15453199a106e001a81f871e260376dffeaba2f0 (commit)
      from  acef605ba34264f3f391ddc6feb827747a9fe911 (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=15453199a106e001a81f871e260376dffeaba2f0

commit 15453199a106e001a81f871e260376dffeaba2f0
Author: Franck Villaume <[email protected]>
Date:   Thu Oct 6 17:30:28 2016 +0200

    docman: quick fix when dirid is not valid

diff --git a/src/www/docman/index.php b/src/www/docman/index.php
index 725ce68..8ae45ce 100644
--- a/src/www/docman/index.php
+++ b/src/www/docman/index.php
@@ -66,6 +66,12 @@ if ($g->isError())
        exit_error($g->getErrorMessage(), 'docman');
 
 $dirid = getIntFromRequest('dirid', 0);
+if ($dirid) {
+       $chkdg = documentgroup_get_object($dirid, $g->getID());
+       if (!is_object($chkdg)) {
+               session_redirect('/docman/?group_id='.$group_id);
+       }
+}
 
 $childgroup_id = getIntFromRequest('childgroup_id');
 

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

Summary of changes:
 src/www/docman/index.php | 6 ++++++
 1 file changed, 6 insertions(+)


hooks/post-receive
-- 
FusionForge

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

Reply via email to