From f80d446b1f0d66ce09e630b70eb2b65f917fb3ff Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 14 Oct 2018 12:22:06 +0200 Subject: [PATCH] Broaden allowed characters in media provider name See #2545 --- .../plugin/MediaProviderPackageInstallationPlugin.class.php | 2 +- wcfsetup/install/lang/en.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 - + -- 2.20.1