From b583310476763f6826be9ccf16872d525c57dc9b Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 19 Aug 2021 16:03:59 +0200 Subject: [PATCH] Allow ircs protocol for support.irc --- src/Composer/Package/Loader/ValidatingArrayLoader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Composer/Package/Loader/ValidatingArrayLoader.php b/src/Composer/Package/Loader/ValidatingArrayLoader.php index b2e0ad232..c275fc357 100644 --- a/src/Composer/Package/Loader/ValidatingArrayLoader.php +++ b/src/Composer/Package/Loader/ValidatingArrayLoader.php @@ -179,8 +179,8 @@ class ValidatingArrayLoader implements LoaderInterface unset($this->config['support']['email']); } - if (isset($this->config['support']['irc']) && !$this->filterUrl($this->config['support']['irc'], array('irc'))) { - $this->warnings[] = 'support.irc : invalid value ('.$this->config['support']['irc'].'), must be a irc:/// URL'; + if (isset($this->config['support']['irc']) && !$this->filterUrl($this->config['support']['irc'], array('irc', 'ircs'))) { + $this->warnings[] = 'support.irc : invalid value ('.$this->config['support']['irc'].'), must be a irc:/// or ircs:// URL'; unset($this->config['support']['irc']); }