17th time is the charm

This commit is contained in:
Jeremy Kauffman 2019-02-05 17:06:06 -05:00
parent 19c096cd67
commit 8a7e844397

View file

@ -82,15 +82,16 @@ class Controller
*/ */
$hostName = $_SERVER['HTTP_HOST']; $hostName = $_SERVER['HTTP_HOST'];
if ($hostName && in_array($hostName, ['lbry.org', 'lbry.tv'])) { if ($hostName && in_array($hostName, ['lbry.org', 'lbry.tv'])) {
if ($uri !== '/' && substr($uri, 0, 5) !== '/list') { //especially this line if ($uri === '/') {
return static::redirect('/');
}
switch ($hostName) { switch ($hostName) {
case 'lbry.org': case 'lbry.org':
return ContentActions::executeOrg(); return ContentActions::executeOrg();
case 'lbry.tv': case 'lbry.tv':
return ContentActions::executeTv(); return ContentActions::executeTv();
} }
} elseif (substr($uri, 0, 5) !== '/list') { //especially this line
return static::redirect('/');
}
} }
} }