git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ae288f2
)
login/list: ignore symlinks in profile directory
author
Mischa POSLAWSKY
<perl@shiar.org>
Fri, 15 Jan 2021 11:26:38 +0000
(12:26 +0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 27 Apr 2021 00:48:25 +0000
(
02:48
+0200)
Assume links to directories are aliases to be hidden.
widget/login/list.php
patch
|
blob
|
history
diff --git
a/widget/login/list.php
b/widget/login/list.php
index 0500ef2746acd1a0a86573a0812643a0f50b38cd..92f265bb46242d6558db795dfa08ddefd94a1d8f 100644
(file)
--- a/
widget/login/list.php
+++ b/
widget/login/list.php
@@
-3,7
+3,7
@@
$basepath = 'profile';
if (isset($Page->place[0])) {
$basepath .= '/.tags/' . $Page->place[0];
}
if (isset($Page->place[0])) {
$basepath .= '/.tags/' . $Page->place[0];
}
-$users = glob("$basepath/*
/"
);
+$users = glob("$basepath/*
", GLOB_ONLYDIR
);
if (!$users) return;
foreach ($users as $col => $userdir) {
if (!$users) return;
foreach ($users as $col => $userdir) {