Welcome! Log In Create A New Profile

Advanced

[nginx] Allowed digits, '+', '-', and '.' in scheme names as per RFC 3986.

June 07, 2018 03:02PM
details: http://hg.nginx.org/nginx/rev/f9661f56c717
branches:
changeset: 7292:f9661f56c717
user: Ruslan Ermilov <ru@nginx.com>
date: Thu May 24 12:06:35 2018 +0300
description:
Allowed digits, '+', '-', and '.' in scheme names as per RFC 3986.

diffstat:

src/http/ngx_http_parse.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 3482c069e050 -r f9661f56c717 src/http/ngx_http_parse.c
--- a/src/http/ngx_http_parse.c Wed Jun 06 13:31:05 2018 +0300
+++ b/src/http/ngx_http_parse.c Thu May 24 12:06:35 2018 +0300
@@ -307,6 +307,11 @@ ngx_http_parse_request_line(ngx_http_req
break;
}

+ if ((ch >= '0' && ch <= '9') || ch == '+' || ch == '-' || ch == '.')
+ {
+ break;
+ }
+
switch (ch) {
case ':':
r->schema_end = p;
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Allowed digits, '+', '-', and '.' in scheme names as per RFC 3986.

ru@nginx.com 690 June 07, 2018 03:02PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 304
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready