Skip to content

Commit

Permalink
prevent http/https security issues w script url
Browse files Browse the repository at this point in the history
  • Loading branch information
woodwardtw committed Sep 7, 2017
1 parent ad1c7fe commit 83651c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

// trap for missing src param for the feed, use a dummy one so it gets displayed.
if (!$src or
(strpos($src, 'http://') !==0 and strpos($src, 'https://') !==0))
(strpos($src, '//') !==0 and strpos($src, 'https://') !==0))
die('Feed URL missing, incomplete, or not valid. Must start with http:// or https:// and be a valid URL');


Expand Down

0 comments on commit 83651c8

Please sign in to comment.