summaryrefslogtreecommitdiffstats
path: root/server/protocol.c
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2016-11-22 19:43:28 +0100
committerWilliam A. Rowe Jr <wrowe@apache.org>2016-11-22 19:43:28 +0100
commit2e501bbb12b6d2299f2336e6e839a968570e97a3 (patch)
tree9e62c501982072b2f775f5cf74101947cb4f60ec /server/protocol.c
parentList discussion resulted in rejecting all but SP characters in the request (diff)
downloadapache2-2e501bbb12b6d2299f2336e6e839a968570e97a3.tar.xz
apache2-2e501bbb12b6d2299f2336e6e839a968570e97a3.zip
Optimize away one more strchr
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1770869 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--server/protocol.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/protocol.c b/server/protocol.c
index 5a6981b780..c5fa8cf856 100644
--- a/server/protocol.c
+++ b/server/protocol.c
@@ -743,8 +743,7 @@ static int read_request_line(request_rec *r, apr_bucket_brigade *bb)
}
else {
for ( ; apr_isspace(*ll); ++ll)
- if (ap_strchr_c("\t\n\v\f\r", *ll)
- && deferred_error == rrl_none)
+ if (*ll != ' ' && deferred_error == rrl_none)
deferred_error = rrl_badwhitespace;
if (*ll && deferred_error == rrl_none)
deferred_error = rrl_trailingtext;