Skip to content

Commit

Permalink
https://github.com/WWBN/AVideo/issues/3117
Browse files Browse the repository at this point in the history
Make sure the livelink starts with http
  • Loading branch information
daniel authored and daniel committed May 22, 2020
1 parent 8dcd3ff commit 218c98c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/LiveLinks/proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/*
* this file is to handle HTTP URLs into HTTPS
*/
if (!filter_var($_GET['livelink'], FILTER_VALIDATE_URL) && preg_match("/^http.*/i", $_GET['livelink'])) {
if (!filter_var($_GET['livelink'], FILTER_VALIDATE_URL) || !preg_match("/^http.*/i", $_GET['livelink'])) {
echo "Invalid Link";
exit;
}
Expand Down

0 comments on commit 218c98c

Please sign in to comment.