diff options
Diffstat (limited to '')
-rw-r--r-- | modules/proxy/proxy_util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index a63bfcaf63..b4ab3c0d12 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -1308,6 +1308,9 @@ PROXY_DECLARE(const char *) ap_proxy_add_worker(proxy_worker **worker, if (rv != APR_SUCCESS) { return "Unable to parse URL"; } + if (!uri.hostname || !uri.scheme) { + return "URL must be absolute!"; + } ap_str_tolower(uri.hostname); ap_str_tolower(uri.scheme); |