Welcome! Log In Create A New Profile

Advanced

[nginx] svn commit: r4636 - trunk/src/http/modules

Anonymous User
May 16, 2012 09:16AM
Author: ru
Date: 2012-05-16 13:14:53 +0000 (Wed, 16 May 2012)
New Revision: 4636
URL: http://trac.nginx.org/nginx/changeset/4636/nginx

Log:
Added syntax checking of the second parameter of the "split_clients" directive.


Modified:
trunk/src/http/modules/ngx_http_split_clients_module.c

Modified: trunk/src/http/modules/ngx_http_split_clients_module.c
===================================================================
--- trunk/src/http/modules/ngx_http_split_clients_module.c 2012-05-16 13:09:39 UTC (rev 4635)
+++ trunk/src/http/modules/ngx_http_split_clients_module.c 2012-05-16 13:14:53 UTC (rev 4636)
@@ -138,6 +138,13 @@
}

name = value[2];
+
+ if (name.len < 2 || name.data[0] != '$') {
+ ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
+ "invalid variable name \"%V\"", &name);
+ return NGX_CONF_ERROR;
+ }
+
name.len--;
name.data++;


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

[nginx] svn commit: r4636 - trunk/src/http/modules

Anonymous User 1310 May 16, 2012 09:16AM



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

Online Users

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