Fix a bug in simplified urls for VideoHelper, a=chris
Fix a bug in simplified urls for VideoHelper, a=chris
diff --git a/src/views/helpers/VideosHelper.php b/src/views/helpers/VideosHelper.php
index b4f878324..8aebd283d 100644
--- a/src/views/helpers/VideosHelper.php
+++ b/src/views/helpers/VideosHelper.php
@@ -81,7 +81,8 @@ class VideosHelper extends Helper implements CrawlConstants
$host_parts = explode(".", $host);
$company = $host;
foreach ($host_parts as $host_part) {
- if ($host_part != "www" && strlen($host_part) > 2) {
+ if (!in_array(substr($host_part, 0 3), ["www", "htt"] &&
+ strlen($host_part) > 2) {
$company = $host_part;
break;
}