mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Don't treat links to redyoutube.com as YouTube
Test Plan: `http://redyoutube.com/?v=1` Reviewers: tuomaspelkonen, epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D2842
This commit is contained in:
parent
d7b8bc892b
commit
382bafa271
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ final class PhabricatorRemarkupRuleYoutube
|
||||||
$this->uri = new PhutilURI($text);
|
$this->uri = new PhutilURI($text);
|
||||||
|
|
||||||
if ($this->uri->getDomain() &&
|
if ($this->uri->getDomain() &&
|
||||||
preg_match('/youtube\.com$/', $this->uri->getDomain())) {
|
preg_match('/(^|\.)youtube\.com$/', $this->uri->getDomain())) {
|
||||||
return $this->markupYoutubeLink();
|
return $this->markupYoutubeLink();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue