mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Allow space in user name #2466
This commit is contained in:
parent
eccc337d44
commit
1aac6f8a41
2 changed files with 24 additions and 6 deletions
|
|
@ -123,14 +123,20 @@ class MemberAdminController extends Member
|
|||
}
|
||||
|
||||
// remove whitespace
|
||||
$checkInfos = array('user_id', 'user_name', 'nick_name', 'email_address');
|
||||
foreach($checkInfos as $val)
|
||||
foreach(['user_id', 'nick_name', 'email_address'] as $val)
|
||||
{
|
||||
if(isset($args->{$val}))
|
||||
{
|
||||
$args->{$val} = preg_replace('/[\pZ\pC]+/u', '', utf8_clean(html_entity_decode($args->{$val})));
|
||||
}
|
||||
}
|
||||
foreach(['user_name'] as $val)
|
||||
{
|
||||
if(isset($args->{$val}))
|
||||
{
|
||||
$args->{$val} = utf8_normalize_spaces(utf8_clean(html_entity_decode($args->{$val})));
|
||||
}
|
||||
}
|
||||
|
||||
// 실제로 디비쿼리시 빈값이 없다면 해당 쿼리를 무시하고 업데이트 하기 때문에 메모의 내용이 삭제가 되지 않습니다.
|
||||
if(!isset($args->description))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue