comparison src/http/modules/ngx_http_ssi_filter_module.c @ 1190:99c56c0f514e

fix segfault or parsing error in '<!--# if expr="$var = /" -->'
author Igor Sysoev <igor@sysoev.ru>
date Wed, 02 May 2007 08:07:37 +0000
parents ea5676ca98f4
children c3541b8973de
comparison
equal deleted inserted replaced
1189:5e1a8fe79c4b 1190:99c56c0f514e
2374 2374
2375 while (p < last && *p == ' ') { 2375 while (p < last && *p == ' ') {
2376 p++; 2376 p++;
2377 } 2377 }
2378 2378
2379 if (p < last && *p == '/') { 2379 if (p < last - 1 && *p == '/') {
2380 if (*(last - 1) != '/') { 2380 if (*(last - 1) != '/') {
2381 goto invalid_expression; 2381 goto invalid_expression;
2382 } 2382 }
2383 2383
2384 noregex = 0; 2384 noregex = 0;