Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Hotfix to allow brackets in filenames like "imgcopy(1).jpg" for image previews #64

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/class/uploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ protected function checkFilename($file) {
(
isset($this->config['_normalizeFilenames']) &&
$this->config['_normalizeFilenames'] &&
preg_match('/[^0-9a-z\.\- _]/si', $file)
preg_match('/[^0-9a-z\.\- _()]/si', $file)
)
)
return false;
Expand Down
2 changes: 1 addition & 1 deletion lang/de.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"Non-existing directory type." => "Der Ordner Typ existiert nicht.",
"Undefined MIME types." => "Unbekannte MIME Typen.",
"Fileinfo PECL extension is missing." => "PECL extension für Dateiinformationen fehlt",
"Opening fileinfo database failed." => "Öffnen der Dateiinfo Datenbank fehlgeschlagen.",
"Opening fileinfo database failed." => "Öffnen der Dateiinfo Datenbank fehlgeschlagen.",
"You can't upload such files." => "Du kannst solche Dateien nicht hochladen.",
"The file '{file}' does not exist." => "Die Datei '{file}' existiert nicht.",
"Cannot read '{file}'." => "Kann Datei '{file}' nicht lesen.",
Expand Down