|
@@ -91,7 +91,7 @@ discard block |
|
|
block discarded – undo |
|
91
|
91
|
public function matchUri($uri) |
|
92
|
92
|
{ |
|
93
|
93
|
// don't start pattern with '^', because the might be a base path. |
|
94
|
|
- $pattern = '#' . preg_quote($this->options->getUriPath(), '#') . '/[0-9a-z]/[0-9a-z]/([0-9a-z]+)\.[a-zA-Z]{3,4}$#'; |
|
|
94
|
+ $pattern = '#'.preg_quote($this->options->getUriPath(), '#').'/[0-9a-z]/[0-9a-z]/([0-9a-z]+)\.[a-zA-Z]{3,4}$#'; |
|
95
|
95
|
$matches = []; |
|
96
|
96
|
preg_match($pattern, $uri, $matches); |
|
97
|
97
|
|
|
@@ -147,7 +147,7 @@ discard block |
|
|
block discarded – undo |
|
147
|
147
|
{ |
|
148
|
148
|
$dir = rtrim($dir, '/\\'); |
|
149
|
149
|
|
|
150
|
|
- if (! is_dir($dir)) { |
|
|
150
|
+ if (!is_dir($dir)) { |
|
151
|
151
|
$this->createDirectoryRecursively(dirname($dir)); |
|
152
|
152
|
|
|
153
|
153
|
$oldUmask = umask(0); |
Please login to merge, or discard this patch.