Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

bugfix: made DDEBUG defineable from outside.

  • Loading branch information...
commit beddbe14a89c092a1af89e8bfbe09f1923f56087 1 parent 57e2119
Yichun Zhang authored February 15, 2012
2  src/ngx_http_xss_filter_module.c
@@ -2,7 +2,9 @@
2 2
  * Copyright (C) agentzh
3 3
  */
4 4
 
  5
+#ifndef DDEBUG
5 6
 #define DDEBUG 0
  7
+#endif
6 8
 #include "ddebug.h"
7 9
 
8 10
 
18  src/ngx_http_xss_util.c
... ...
@@ -1,14 +1,16 @@
1 1
 
2 2
 #line 1 "src/ngx_http_xss_util.rl"
  3
+#ifndef DDEBUG
3 4
 #define DDEBUG 0
  5
+#endif
4 6
 #include "ddebug.h"
5 7
 
6 8
 #include "ngx_http_xss_util.h"
7 9
 
8 10
 
9  
-#line 7 "src/ngx_http_xss_util.rl"
  11
+#line 9 "src/ngx_http_xss_util.rl"
10 12
 
11  
-#line 12 "src/ngx_http_xss_util.c"
  13
+#line 14 "src/ngx_http_xss_util.c"
12 14
 static const int javascript_start = 1;
13 15
 static const int javascript_first_final = 6;
14 16
 static const int javascript_error = 0;
@@ -16,7 +18,7 @@ static const int javascript_error = 0;
16 18
 static const int javascript_en_main = 1;
17 19
 
18 20
 
19  
-#line 8 "src/ngx_http_xss_util.rl"
  21
+#line 10 "src/ngx_http_xss_util.rl"
20 22
 
21 23
 ngx_int_t ngx_http_xss_test_callback(u_char *data, size_t len)
22 24
 {
@@ -27,12 +29,12 @@ ngx_int_t ngx_http_xss_test_callback(u_char *data, size_t len)
27 29
     pe = p + len;
28 30
 
29 31
     
30  
-#line 31 "src/ngx_http_xss_util.c"
  32
+#line 33 "src/ngx_http_xss_util.c"
31 33
 	{
32 34
 	cs = javascript_start;
33 35
 	}
34 36
 
35  
-#line 36 "src/ngx_http_xss_util.c"
  37
+#line 38 "src/ngx_http_xss_util.c"
36 38
 	{
37 39
 	if ( p == pe )
38 40
 		goto _test_eof;
@@ -128,13 +130,13 @@ case 5:
128 130
 	_out: {}
129 131
 	}
130 132
 
131  
-#line 29 "src/ngx_http_xss_util.rl"
  133
+#line 31 "src/ngx_http_xss_util.rl"
132 134
 
133 135
 
134 136
     if (cs < 
135  
-#line 136 "src/ngx_http_xss_util.c"
  137
+#line 138 "src/ngx_http_xss_util.c"
136 138
 6
137  
-#line 31 "src/ngx_http_xss_util.rl"
  139
+#line 33 "src/ngx_http_xss_util.rl"
138 140
  || p != pe) {
139 141
         return NGX_DECLINED;
140 142
     }
2  src/ngx_http_xss_util.rl
... ...
@@ -1,4 +1,6 @@
  1
+#ifndef DDEBUG
1 2
 #define DDEBUG 0
  3
+#endif
2 4
 #include "ddebug.h"
3 5
 
4 6
 #include "ngx_http_xss_util.h"
1  util/build.sh
@@ -15,6 +15,7 @@ force=$2
15 15
 
16 16
 ngx-build $force $version \
17 17
             --with-cc-opt="-O3 -funsigned-char" \
  18
+        --with-http_ssl_module \
18 19
             --without-mail_pop3_module \
19 20
             --without-mail_imap_module \
20 21
             --without-mail_smtp_module \

0 notes on commit beddbe1

Please sign in to comment.
Something went wrong with that request. Please try again.