login/list: ignore symlinks in profile directory
authorMischa POSLAWSKY <perl@shiar.org>
Fri, 15 Jan 2021 11:26:38 +0000 (12:26 +0100)
committerMischa 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

index 0500ef2746acd1a0a86573a0812643a0f50b38cd..92f265bb46242d6558db795dfa08ddefd94a1d8f 100644 (file)
@@ -3,7 +3,7 @@ $basepath = 'profile';
 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) {