|
@@ 2757-2763 (lines=7) @@
|
| 2754 |
|
|
| 2755 |
|
$path = '/'.$path; |
| 2756 |
|
|
| 2757 |
|
for ($i = 0, $c = count($this->attributes); $i < $c; $i++) { |
| 2758 |
|
$attrs = $this->attributes[$i]; |
| 2759 |
|
|
| 2760 |
|
if (isset($attrs[$name]) && isset($attrs['pattern']) && preg_match($attrs['pattern'], $path)) { |
| 2761 |
|
$perm = $attrs[$name]; |
| 2762 |
|
} |
| 2763 |
|
} |
| 2764 |
|
|
| 2765 |
|
return $perm === null ? (is_null($val)? $this->defaults[$name] : $val) : !!$perm; |
| 2766 |
|
} |
|
@@ 2789-2795 (lines=7) @@
|
| 2786 |
|
|
| 2787 |
|
$testPath = $this->separator.$this->relpathCE($path); |
| 2788 |
|
|
| 2789 |
|
for ($i = 0, $c = count($this->attributes); $i < $c; $i++) { |
| 2790 |
|
$attrs = $this->attributes[$i]; |
| 2791 |
|
|
| 2792 |
|
if (isset($attrs['write']) && isset($attrs['pattern']) && preg_match($attrs['pattern'], $testPath)) { |
| 2793 |
|
$perm = $attrs['write']; |
| 2794 |
|
} |
| 2795 |
|
} |
| 2796 |
|
|
| 2797 |
|
return $perm === null ? true : $perm; |
| 2798 |
|
} |