Merge pull request #1179 from trsc/prevent_dismissal_of_urls_in_checks_file
prevent dismissal of URLs in CHECKS file that contain query params
This commit is contained in:
@@ -130,8 +130,8 @@ do
|
|||||||
# Ignore empty lines and lines starting with #
|
# Ignore empty lines and lines starting with #
|
||||||
# shellcheck disable=SC1001
|
# shellcheck disable=SC1001
|
||||||
[[ -z "$CHECK_URL" || "$CHECK_URL" =~ ^\# ]] && continue
|
[[ -z "$CHECK_URL" || "$CHECK_URL" =~ ^\# ]] && continue
|
||||||
# Ignore variables
|
# Ignore if it's not a URL in a supported format
|
||||||
[[ "$CHECK_URL" =~ ^.+= ]] && continue
|
! [[ "$CHECK_URL" =~ ^(http(s)?:)?\/.+ ]] && continue
|
||||||
|
|
||||||
if [[ "$CHECK_URL" =~ ^https?: ]] ; then
|
if [[ "$CHECK_URL" =~ ^https?: ]] ; then
|
||||||
URL_PROTOCOL=${CHECK_URL%:*}
|
URL_PROTOCOL=${CHECK_URL%:*}
|
||||||
|
|||||||
Reference in New Issue
Block a user