diff options
author | TingPing <tngpng@gmail.com> | 2013-03-11 13:55:29 -0300 |
---|---|---|
committer | TingPing <tngpng@gmail.com> | 2013-03-11 13:55:29 -0300 |
commit | b5f78f484d43c73976085fe59e5995ba4c6c242f (patch) | |
tree | 9bd58df6c97cecf7352ecd3929c8636542774365 /src/common/url.c | |
parent | 1ddb76465a38eea4df612b86c723e36bbbf45a43 (diff) |
Fix relative paths on windows
Diffstat (limited to 'src/common/url.c')
-rw-r--r-- | src/common/url.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/url.c b/src/common/url.c index 6bd7d9ff..2007b600 100644 --- a/src/common/url.c +++ b/src/common/url.c @@ -515,8 +515,8 @@ re_channel (void) /* PATH description --- */ #ifdef WIN32 -/* Windows path can be C: D: etc */ -#define PATH "^([a-z]:).*" +/* Windows path can be .\ ..\ or C: D: etc */ +#define PATH "^(\\.{1,2}\\\\|[a-z]:).*" #else /* Linux path can be / or ./ or ../ etc */ #define PATH "^(/|\\./|\\.\\./).*" |