Skip to content
Permalink
Browse files

fix: adds whitelisted websites among the image urls to replace

  • Loading branch information...
selul committed Feb 7, 2019
1 parent 824acdc commit bfb016e24d3bdd4db08e9cd2a47ca0b5e9d3a3bb
Showing with 2 additions and 2 deletions.
  1. +2 −2 inc/app_replacer.php
@@ -268,6 +268,7 @@ function ( $value ) {
* @return bool Either we can replace this url or not.
*/
public function can_replace_url( $url ) {
if ( ! is_string( $url ) ) {
return false; // @codeCoverageIgnore
}
@@ -276,8 +277,7 @@ public function can_replace_url( $url ) {
if ( ! isset( $url['host'] ) ) {
return false;
}
return isset( $this->possible_sources[ $url['host'] ] );
return isset( $this->possible_sources[ $url['host'] ] ) || isset( $this->allowed_sources[ $url['host'] ] );
}
/**

0 comments on commit bfb016e

Please sign in to comment.
You can’t perform that action at this time.