From: Matthias Schmidt Date: Sun, 14 Oct 2018 10:22:06 +0000 (+0200) Subject: Broaden allowed characters in media provider name X-Git-Tag: 5.2.0_Alpha_1~635 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f80d446b1f0d66ce09e630b70eb2b65f917fb3ff;p=GitHub%2FWoltLab%2FWCF.git Broaden allowed characters in media provider name See #2545 --- diff --git a/wcfsetup/install/files/lib/system/package/plugin/MediaProviderPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/MediaProviderPackageInstallationPlugin.class.php index 5860f40605..b6cfab01dd 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/MediaProviderPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/MediaProviderPackageInstallationPlugin.class.php @@ -116,7 +116,7 @@ class MediaProviderPackageInstallationPlugin extends AbstractXMLPackageInstallat ->label('wcf.acp.pip.mediaProvider.name') ->description('wcf.acp.pip.mediaProvider.name.description') ->addValidator(new FormFieldValidator('format', function(TextFormField $formField) { - if (!preg_match('~^[a-z][A-z]+$~', $formField->getSaveValue())) { + if (!preg_match('~^[a-z][A-z0-9-]+$~', $formField->getSaveValue())) { $formField->addValidationError( new FormFieldValidationError( 'format', diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 4e5f47ce97..f562cfa949 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -1941,7 +1941,7 @@ If you have already bought the licenses for the listed apps, th - +