Welcome! Log In Create A New Profile

Advanced

[BUG] ngx_http_sub_module fails to process single-char patterns

Yichun Zhang (agentzh)
September 03, 2014 03:08PM
Hello!

I've noted a bug in nginx 1.7.4's standard ngx_http_sub_module that
single-char patterns are never handled properly but longer patterns
work. Consider the following minimal example:

location = /t {
default_type text/html;
return 200 "hello world";
sub_filter 'h' '';
}

Accessing /t gives the response body

hello world

instead of the expected output

ello world

The 'h' pattern is essentially ignored. Using longer patterns like
'he' in the example above works as expected though.

Best regards,
-agentzh

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[BUG] ngx_http_sub_module fails to process single-char patterns

Yichun Zhang (agentzh) 878 September 03, 2014 03:08PM

Re: [BUG] ngx_http_sub_module fails to process single-char patterns

Yichun Zhang (agentzh) 315 September 03, 2014 03:10PM

Re: [BUG] ngx_http_sub_module fails to process single-char patterns

Konstantin Pavlov 333 September 03, 2014 03:22PM

Re: [BUG] ngx_http_sub_module fails to process single-char patterns

Yichun Zhang (agentzh) 372 September 03, 2014 03:58PM



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

Online Users

Guests: 131
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