summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-02-15 01:40:12 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-02-15 01:40:12 +0900
commitb7dbcea58bf0fea8792a653a64d8a87ae584d839 (patch)
tree2d63a3939f0bee56d3ee36c16b6b9b48c17193da /src/util.h
parent9e302b86df6ed9ada7399c91fb33a8d955912d59 (diff)
Check scheme part in redirected URI more strictly.
The previous implementation mistakenly sees '/abspath?uri=http://foo' as an absolute URI because it contains '://', but actually it is not. This change checks scheme part is constructed in the allowed character set described in RFC 3986 Section 3.1.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 4d2ceb43..80de4d29 100644
--- a/src/util.h
+++ b/src/util.h
@@ -358,6 +358,8 @@ bool isNumber(InputIterator first, InputIterator last)
return true;
}
+bool isAlpha(const char c);
+
bool isDigit(const char c);
bool isHexDigit(const char c);