Skip to content
Snippets Groups Projects
Commit 2da166ea authored by deuce's avatar deuce
Browse files

Use wildmatch to match filenames to keys in webctrl.ini.

parent b6ea2ed4
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@
return false; // Directory is controlled but webctrl not openable
}
for(var w = 0; w < webctrl.length; w++) {
if(webctrl[w].name != fileName)
if(!wildmatch(fileName, webctrl[w].name))
continue;
if(typeof webctrl[w].AccessRequirements != "undefined" && !user.compare_ars(webctrl[w].AccessRequirements))
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment