summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/httpd/src/main/http_protocol.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/httpd/src/main/http_protocol.c b/usr.sbin/httpd/src/main/http_protocol.c
index b7beb3c4edd..85b5a7c6db8 100644
--- a/usr.sbin/httpd/src/main/http_protocol.c
+++ b/usr.sbin/httpd/src/main/http_protocol.c
@@ -340,7 +340,9 @@ API_EXPORT(int) ap_set_byterange(request_rec *r)
bbuf = ap_palloc(r->pool, ap_base64encode_len(sizeof(rbuf)));
ap_base64encode(bbuf, (const unsigned char *)rbuf, sizeof(rbuf));
for (b = bbuf; *b != '\0'; b++) {
- if (!isalnum(*b))
+ if (((b - bbuf) + 1) % 7 == 0)
+ *b = '-';
+ else if (!isalnum(*b))
*b = 'a';
}