mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-18 18:51:12 +01:00
Fix IRC nick regex.
Summary: Nicks can contain more characters than were allowed. The new regex is ugly, but should include most of them. Test Plan: Joined the bot as phabot-c0d`eb1^ock successfully. Reviewers: epriestley CC: Differential Revision: 453
This commit is contained in:
parent
cb0cbc50ad
commit
226fdb5589
1 changed files with 2 additions and 2 deletions
|
@ -56,9 +56,9 @@ final class PhabricatorIRCBot extends PhabricatorDaemon {
|
|||
|
||||
$nick = idx($config, 'nick', 'phabot');
|
||||
|
||||
if (!preg_match('/^[A-Za-z0-9_]+$/', $nick)) {
|
||||
if (!preg_match('/^[A-Za-z0-9_`[{}^|\]\\-]+$/', $nick)) {
|
||||
throw new Exception(
|
||||
"Nickname '{$nick}' is invalid, must be alphanumeric!");
|
||||
"Nickname '{$nick}' is invalid!");
|
||||
}
|
||||
|
||||
if (!$join) {
|
||||
|
|
Loading…
Reference in a new issue