Welcome! Log In Create A New Profile

Advanced

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

Anonymous User
December 19, 2011 08:30AM
Author: vbart
Date: 2011-12-19 13:28:22 +0000 (Mon, 19 Dec 2011)
New Revision: 4375

Modified:
trunk/src/http/modules/ngx_http_ssi_filter_module.c
Log:
SSI bugfix: the "if" command did not work inside the "block" command and
produced parsing errors.


Modified: trunk/src/http/modules/ngx_http_ssi_filter_module.c
===================================================================
--- trunk/src/http/modules/ngx_http_ssi_filter_module.c 2011-12-19 11:25:40 UTC (rev 4374)
+++ trunk/src/http/modules/ngx_http_ssi_filter_module.c 2011-12-19 13:28:22 UTC (rev 4375)
@@ -624,16 +624,6 @@
continue;
}

- if (cmd->conditional
- && (ctx->conditional == 0
- || ctx->conditional > cmd->conditional))
- {
- ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
- "invalid context of SSI command: \"%V\"",
- &ctx->command);
- goto ssi_error;
- }
-
if (!ctx->output && !cmd->block) {

if (ctx->block) {
@@ -709,6 +699,16 @@
}
}

+ if (cmd->conditional
+ && (ctx->conditional == 0
+ || ctx->conditional > cmd->conditional))
+ {
+ ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
+ "invalid context of SSI command: \"%V\"",
+ &ctx->command);
+ goto ssi_error;
+ }
+
if (ctx->params.nelts > NGX_HTTP_SSI_MAX_PARAMS) {
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
"too many SSI command paramters: \"%V\"",

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

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

Anonymous User 1643 December 19, 2011 08:30AM



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

Online Users

Guests: 93
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready