|
@@ 2703-2709 (lines=7) @@
|
| 2700 |
|
|
| 2701 |
|
$path = '/'.$path; |
| 2702 |
|
|
| 2703 |
|
for ($i = 0, $c = count($this->attributes); $i < $c; $i++) { |
| 2704 |
|
$attrs = $this->attributes[$i]; |
| 2705 |
|
|
| 2706 |
|
if (isset($attrs[$name]) && isset($attrs['pattern']) && preg_match($attrs['pattern'], $path)) { |
| 2707 |
|
$perm = $attrs[$name]; |
| 2708 |
|
} |
| 2709 |
|
} |
| 2710 |
|
|
| 2711 |
|
return $perm === null ? (is_null($val)? $this->defaults[$name] : $val) : !!$perm; |
| 2712 |
|
} |
|
@@ 2735-2741 (lines=7) @@
|
| 2732 |
|
|
| 2733 |
|
$testPath = $this->separator.$this->relpathCE($path); |
| 2734 |
|
|
| 2735 |
|
for ($i = 0, $c = count($this->attributes); $i < $c; $i++) { |
| 2736 |
|
$attrs = $this->attributes[$i]; |
| 2737 |
|
|
| 2738 |
|
if (isset($attrs['write']) && isset($attrs['pattern']) && preg_match($attrs['pattern'], $testPath)) { |
| 2739 |
|
$perm = $attrs['write']; |
| 2740 |
|
} |
| 2741 |
|
} |
| 2742 |
|
|
| 2743 |
|
return $perm === null ? true : $perm; |
| 2744 |
|
} |