diff options
author | lpsolit%gmail.com <> | 2006-02-22 23:58:39 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-02-22 23:58:39 +0100 |
commit | ca0d3d364bbfbd5fcb65c1153a21469b077ba80e (patch) | |
tree | 8499115d46acad658026feb6eeed642a940e0666 /Bugzilla/Config/Common.pm | |
parent | 947e78213b1a987b483a9c29f3436dc15a80d6e0 (diff) | |
download | bugzilla-ca0d3d364bbfbd5fcb65c1153a21469b077ba80e.tar.gz bugzilla-ca0d3d364bbfbd5fcb65c1153a21469b077ba80e.tar.xz |
Bug 316127: Implement an infrastructure to link to the documentation - Patch by Marc Schumann <wurblzap@gmail.com> r=vladd a=justdave
Diffstat (limited to 'Bugzilla/Config/Common.pm')
-rw-r--r-- | Bugzilla/Config/Common.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Bugzilla/Config/Common.pm b/Bugzilla/Config/Common.pm index c87e2f713..4ca48b839 100644 --- a/Bugzilla/Config/Common.pm +++ b/Bugzilla/Config/Common.pm @@ -195,6 +195,15 @@ sub check_urlbase { return ""; } +sub check_url { + my ($url) = (@_); + return '' if $url eq ''; # Allow empty URLs + if ($url !~ m:/$:) { + return 'must be a legal URL, absolute or relative, ending with a slash.'; + } + return ''; +} + sub check_webdotbase { my ($value) = (@_); $value = trim($value); |