Skip to content

Commit d4fa0a8

Browse files
committed
Fix incorrect regexp
Because the period `.` character in the regexp was not escaped, it would match any character, not just a period `.` (Resolution for NF-007)
1 parent d1d7ead commit d4fa0a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WAC.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public function getRequestedGrants($request) {
370370
// Special case: restrict access to all .acl files.
371371
// Control is needed to do anything with them,
372372
// having Control allows all operations.
373-
if (preg_match('/.acl$/', $path)) {
373+
if (preg_match('/\.acl$/', $path)) {
374374
return array(
375375
array(
376376
"type" => "resource",

0 commit comments

Comments
 (0)