diff --git a/django/core/validators.py b/django/core/validators.py index a4e33637bc..1f70192838 100644 --- a/django/core/validators.py +++ b/django/core/validators.py @@ -23,7 +23,7 @@ integer_re = re.compile(r'^-?\d+$') ip4_re = re.compile(r'^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$') phone_re = re.compile(r'^[A-PR-Y0-9]{3}-[A-PR-Y0-9]{3}-[A-PR-Y0-9]{4}$', re.IGNORECASE) slug_re = re.compile(r'^[-\w]+$') -url_re = re.compile(r'^http://\S+$') +url_re = re.compile(r'^https?://\S+$') from django.conf.settings import JING_PATH from django.utils.translation import gettext_lazy, ngettext