[SUCS Devel] [Git][sucssite/sucs-site][master] 2 commits: Close #37: untested fix for using symlinks to view files as the apache user

Imran Hussain imranh at sucs.org
Fri Mar 31 12:15:43 BST 2017


Imran Hussain pushed to branch master at sucssite / sucs-site


Commits:
c1fe7de7 by Imran Hussain at 2017-03-31T12:11:13+01:00
Close #37: untested fix for using symlinks to view files as the apache user

- - - - -
e7d69442 by Imran Hussain at 2017-03-31T12:15:42+01:00
Merge branch 'master' of projects.sucs.org:sucssite/sucs-site

- - - - -


1 changed file:

- components/members.php


Changes:

=====================================
components/members.php
=====================================
--- a/components/members.php
+++ b/components/members.php
@@ -48,11 +48,11 @@ if ($session->loggedin) {
                 $homedir = explode('/', $usernames[0]['homedir']);
                 $usernames[0]['acctype'] = ucfirst($homedir[2]);
                 // Project
-                if (file_exists($usernames[0]['homedir'] . '/.project')) {
+                if (file_exists($usernames[0]['homedir'] . '/.project') && ! is_link($usernames[0]['homedir'] . '/.project')) {
                     $usernames[0]['project'] = file_get_contents($usernames[0]['homedir'] . '/.project');
                 }
                 // Plan
-                if (file_exists($usernames[0]['homedir'] . '/.plan')) {
+                if (file_exists($usernames[0]['homedir'] . '/.plan') && ! is_link($usernames[0]['homedir'] . '/.plan')) {
                     $usernames[0]['plan'] = file_get_contents($usernames[0]['homedir'] . '/.plan');
                 }
                 // Website



View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/compare/b7dcdce08b19a86081821d5ed831f30664e501c0...e7d6944250ff28826ba52c09e55bceb1b03bb551
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20170331/790c786e/attachment.html>


More information about the Devel mailing list