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