Merge pull request #77 from bittner/master

Allow local host names for Piwik servers
This commit is contained in:
Joost Cassee 2016-01-06 14:17:45 +01:00
commit 7fcadd3000

View file

@ -15,7 +15,7 @@ from analytical.utils import (is_internal_ip, disable_html,
# domain name (characters separated by a dot), optional URI path, no slash
DOMAINPATH_RE = re.compile(r'^(([^./?#@:]+\.)+[^./?#@:]+)+(/[^/?#@:]+)*$')
DOMAINPATH_RE = re.compile(r'^(([^./?#@:]+\.)*[^./?#@:]+)+(/[^/?#@:]+)*$')
# numeric ID
SITEID_RE = re.compile(r'^\d+$')