From: Alexander Ebert Date: Fri, 12 May 2017 15:50:13 +0000 (+0200) Subject: Fixed a double-encoding issue w/ profile options X-Git-Tag: 3.0.5~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=421b3355654d5e108a98af5b5df030b76e675f23;p=GitHub%2FWoltLab%2FWCF.git Fixed a double-encoding issue w/ profile options --- diff --git a/wcfsetup/install/files/acp/templates/userOptionAdd.tpl b/wcfsetup/install/files/acp/templates/userOptionAdd.tpl index 88fd8b2997..eae9e5c10f 100644 --- a/wcfsetup/install/files/acp/templates/userOptionAdd.tpl +++ b/wcfsetup/install/files/acp/templates/userOptionAdd.tpl @@ -46,9 +46,10 @@
{* dirty work-around for non-i18n environments *} {capture assign=__optionDescription}{lang __optional=true}{$i18nPlainValues['optionDescription']}{/lang}{/capture} - {if !$__optionDescription && !"~^[a-zA-Z0-9\-\_\.]+$~"|preg_match:$i18nPlainValues['optionDescription']}{assign var=__optionDescription value=$i18nPlainValues['optionDescription']}{/if} + {if !$__optionDescription && !"~^[a-zA-Z0-9\-\_\.]+$~"|preg_match:$i18nPlainValues['optionDescription']}{capture assign=__optionDescription}{$i18nPlainValues['optionDescription']}{/capture}{/if} - + {* value is already encoded inside the capture calls above *} + {if $errorField == 'optionDescription'} {if $errorType == 'empty'}