|
@@ -35,8 +35,7 @@ |
|
|
block discarded – undo |
|
35
|
35
|
|
|
36
|
36
|
if ($is_directory && config('lfm.alphanumeric_directory') && preg_match('/[^\w-]/i', $new_name)) { |
|
37
|
37
|
return parent::error('folder-alnum'); |
|
38
|
|
- } |
|
39
|
|
- else if (config('lfm.alphanumeric_filename') && preg_match('/[^.\w-]/i', $new_name)) { |
|
|
38
|
+ } else if (config('lfm.alphanumeric_filename') && preg_match('/[^.\w-]/i', $new_name)) { |
|
40
|
39
|
return parent::error('file-alnum'); |
|
41
|
40
|
} elseif ($this->lfm->setName($new_name)->exists()) { |
|
42
|
41
|
return parent::error('rename'); |
Please login to merge, or discard this patch.