summaryrefslogtreecommitdiff
path: root/os/os2
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2000-10-12 14:22:30 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2000-10-12 14:22:30 +0000
commitc792f50d0ab42d10c167d8c4f5f4f7e56c0a0c08 (patch)
treea87f1516ed59bca118911e2285d9addcceb8988c /os/os2
parentf43a574bcd5905beb1de7b3e74a3b428b8e9d31b (diff)
downloadhttpd-c792f50d0ab42d10c167d8c4f5f4f7e56c0a0c08.tar.gz
Move more path parsing fixes forward from 1.3
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86564 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'os/os2')
-rw-r--r--os/os2/os-inline.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/os/os2/os-inline.c b/os/os2/os-inline.c
index fc165e8322..f9a660d16c 100644
--- a/os/os2/os-inline.c
+++ b/os/os2/os-inline.c
@@ -85,8 +85,10 @@
INLINE int ap_os_is_path_absolute(const char *file)
{
- /* For now, just do the same check that http_request.c and mod_alias.c
- * do.
+ /* For now, just do the same check that http_request.c and mod_alias.c do.
+ * XXX: Accept /bleh still? Or do we concur that d:/bleh is a minimum
+ * requirement? If so, canonical name needs to convert to drive/path
+ * syntax, and the test becomes (file[0] == '/' && file[1] == '/') ||...
*/
- return file && (file[0] == '/' || file[1] == ':');
+ return file && (file[0] == '/' || (file[1] == ':' && file[2] == '/'));
}