Mercurial > urweb
comparison src/c/request.c @ 1417:d0786ff9bb22
Fix detection of POSTs to error pages
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sun, 23 Jan 2011 17:27:51 -0500 |
parents | e65082d76d26 |
children | 22674ac8ebe6 |
comparison
equal
deleted
inserted
replaced
1416:a8606c1cfe87 | 1417:d0786ff9bb22 |
---|---|
198 const char *prefix = uw_get_url_prefix(ctx); | 198 const char *prefix = uw_get_url_prefix(ctx); |
199 char *s; | 199 char *s; |
200 int had_error = 0; | 200 int had_error = 0; |
201 char errmsg[ERROR_BUF_LEN]; | 201 char errmsg[ERROR_BUF_LEN]; |
202 | 202 |
203 uw_reset(ctx); | |
203 rc->queryString[0] = 0; | 204 rc->queryString[0] = 0; |
204 | 205 |
205 for (s = path; *s; ++s) { | 206 for (s = path; *s; ++s) { |
206 if (s[0] == '%' && s[1] == '2' && s[2] == '7') { | 207 if (s[0] == '%' && s[1] == '2' && s[2] == '7') { |
207 s[0] = '\''; | 208 s[0] = '\''; |