1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 01:08:50 +02: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:
vrana 2012-06-22 18:17:52 -07:00
parent d7b8bc892b
commit 382bafa271

View file

@ -26,7 +26,7 @@ final class PhabricatorRemarkupRuleYoutube
$this->uri = new PhutilURI($text);
if ($this->uri->getDomain() &&
preg_match('/youtube\.com$/', $this->uri->getDomain())) {
preg_match('/(^|\.)youtube\.com$/', $this->uri->getDomain())) {
return $this->markupYoutubeLink();
}