Changeset 12231
- Timestamp:
- 06/01/09 09:02:24 (4 years ago)
- File:
-
- 1 edited
-
src/router/httpd/ej.c (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/router/httpd/ej.c
r12223 r12231 103 103 if (len == 3) { 104 104 websWrite(stream, "<input type="); 105 len = 0;106 105 } 107 106 return 1; … … 110 109 if (len == 3) { 111 110 websWrite(stream, "<input class="); 112 len = 0;113 111 } 114 112 return 1; … … 117 115 if (len == 3) { 118 116 websWrite(stream, "<input id="); 119 len = 0;120 117 } 121 118 return 1; … … 124 121 if (len == 3) { 125 122 websWrite(stream, "<div class="); 126 len = 0;127 123 } 128 124 return 1; … … 131 127 if (len == 3) { 132 128 websWrite(stream, "<div id="); 133 len = 0;134 129 } 135 130 return 1; … … 138 133 if (len == 3) { 139 134 websWrite(stream, "<a href=\""); 140 len = 0;141 135 } 142 136 return 1; … … 145 139 if (len == 3) { 146 140 websWrite(stream, "<option value="); 147 len = 0;148 141 } 149 142 return 1; … … 152 145 if (len == 3) { 153 146 websWrite(stream, "<select name="); 154 len = 0;155 147 } 156 148 return 1; … … 159 151 if (len == 3) { 160 152 websWrite(stream, "<span class="); 161 len = 0;162 153 } 163 154 return 1; … … 166 157 if (len == 3) { 167 158 websWrite(stream, "<input name="); 168 len = 0;169 159 } 170 160 return 1; … … 173 163 if (len == 3) { 174 164 websWrite(stream, "document.write(\""); 175 len = 0;176 165 } 177 166 return 1; … … 180 169 if (len == 3) { 181 170 websWrite(stream, "<document."); 182 len = 0;183 171 } 184 172 return 1; … … 187 175 if (len == 3) { 188 176 websWrite(stream, "<script type=\"text/javascript\">"); 189 len = 0;190 177 } 191 178 return 1; … … 197 184 { 198 185 void *handle = NULL; 199 int c ;186 int c, ret; 200 187 char *pattern, *asp = NULL, *func = NULL, *end = NULL; 201 188 int len = 0; … … 215 202 216 203 if (!asp && pattern[0] == '{') { 217 if (decompress(stream, pattern, len)) 204 ret = decompress(stream, pattern, len); 205 if (ret && len == 3 ) { 206 len = 0; 207 continue; 208 } 209 if (ret) 218 210 continue; 219 211 } … … 259 251 { 260 252 void *handle = NULL; 261 int c ;253 int c, ret; 262 254 char *pattern, *asp = NULL, *func = NULL, *end = NULL; 263 255 int len = 0; … … 281 273 282 274 if (!asp && pattern[0] == '{') { 283 284 if (decompress(stream, pattern, len)) 275 ret = decompress(stream, pattern, len); 276 if (ret && len == 3 ) { 277 len = 0; 278 continue; 279 } 280 if (ret) 285 281 continue; 286 282 }
Note: See TracChangeset
for help on using the changeset viewer.
