diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-02-15 01:40:12 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-02-15 01:40:12 +0900 |
| commit | b7dbcea58bf0fea8792a653a64d8a87ae584d839 (patch) | |
| tree | 2d63a3939f0bee56d3ee36c16b6b9b48c17193da /src/util.h | |
| parent | 9e302b86df6ed9ada7399c91fb33a8d955912d59 (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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |
