Athlon1600 / php-proxy-plugin-bundle

PHP-Proxy Plugins made for unblockvideos.com
https://unblockvideos.com/
MIT License
20 stars 24 forks source link

RedTubePlugin.php Make sure the URL has http: #5

Closed webaddicto closed 6 years ago

webaddicto commented 7 years ago

Sometimes the video URL starts with // and it fails to load in the player, here is a fix:

$video = (preg_match('/^\/\//is', $video)) ? "http:".$video : $video;

Athlon1600 commented 6 years ago

I'm pretty sure proxify_url function inside vid_player takes care of that //:
https://github.com/Athlon1600/php-proxy-plugin-bundle/blob/402b9e47870216b780bac76df8941bc2065d8dc3/src/utils.php#L19

can you find a page on redtube where you see this not being handled properly?