Browse Source

Merge pull request #120 from snarfed/allow-bridgy-redirects

allow redirects on Bridgy, Bridgy Fed, and appspot.com
pull/93/merge
Aaron Parecki 1 year ago
committed by GitHub
parent
commit
55fff0875b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/helpers.php

+ 2
- 2
lib/helpers.php View File

@ -41,7 +41,7 @@ function build_url($parsed_url) {
function should_follow_redirects($url) {
$host = parse_url($url, PHP_URL_HOST);
if(preg_match('/brid\.gy|appspot\.com|blogspot\.com|youtube\.com/', $host)) {
if(preg_match('/blogspot\.com|youtube\.com/', $host)) {
return false;
} else {
return true;
@ -66,4 +66,4 @@ function allow_iframe_video($value = NULL) {
$allow_iframe_video = $value;
return $allow_iframe_video;
}
}

Loading…
Cancel
Save