From d8b4d29004d518459a74c5b588d3455da2871e42 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 10 Feb 2006 15:38:54 +0000 Subject: [PATCH] Improved url_re in django.core.validators to accept https. Thanks, Eric Hsu git-svn-id: http://code.djangoproject.com/svn/django/trunk@2299 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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