mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
fix empty channel names
This commit is contained in:
parent
b19b50788c
commit
4af6396ebf
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ $email = Request::encodeStringFromUser($_POST['new_email']);
|
||||||
$sync_consent = isset($_POST['sync_consent']);
|
$sync_consent = isset($_POST['sync_consent']);
|
||||||
|
|
||||||
|
|
||||||
if (!preg_match("/@[A-Za-z0-9-]+$/", $channel_name)) {
|
if ($channel_name !== "" && !preg_match("/@[A-Za-z0-9-]+$/", $channel_name)) {
|
||||||
$channel_name = "@" . $channel_name;
|
$channel_name = "@" . $channel_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue