Skip to content

Commit

Permalink
mi_http: fix escaping
Browse files Browse the repository at this point in the history
(cherry picked from commit 4f070e2)
  • Loading branch information
ovidiusas committed Jan 27, 2015
1 parent b13a3e0 commit 3fd323e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/mi_http/http_fnc.c
Expand Up @@ -188,31 +188,31 @@ do{ \
case '<': \
(temp_holder).len = (temp_counter) - (temp_holder).len; \
MI_HTTP_COPY_2(p, (temp_holder), MI_HTTP_ESC_LT); \
(temp_holder).s += (temp_counter) + 1; \
(temp_holder).s = (str).s + (temp_counter) + 1; \
(temp_holder).len = (temp_counter) + 1; \
break; \
case '>': \
(temp_holder).len = (temp_counter) - (temp_holder).len; \
MI_HTTP_COPY_2(p, (temp_holder), MI_HTTP_ESC_GT); \
(temp_holder).s += (temp_counter) + 1; \
(temp_holder).s = (str).s + (temp_counter) + 1; \
(temp_holder).len = (temp_counter) + 1; \
break; \
case '&': \
(temp_holder).len = (temp_counter) - (temp_holder).len; \
MI_HTTP_COPY_2(p, (temp_holder), MI_HTTP_ESC_AMP); \
(temp_holder).s += (temp_counter) + 1; \
(temp_holder).s = (str).s + (temp_counter) + 1; \
(temp_holder).len = (temp_counter) + 1; \
break; \
case '"': \
(temp_holder).len = (temp_counter) - (temp_holder).len; \
MI_HTTP_COPY_2(p, (temp_holder), MI_HTTP_ESC_QUOT); \
(temp_holder).s += (temp_counter) + 1; \
(temp_holder).s = (str).s + (temp_counter) + 1; \
(temp_holder).len = (temp_counter) + 1; \
break; \
case '\'': \
(temp_holder).len = (temp_counter) - (temp_holder).len; \
MI_HTTP_COPY_2(p, (temp_holder), MI_HTTP_ESC_SQUOT); \
(temp_holder).s += (temp_counter) + 1; \
(temp_holder).s = (str).s + (temp_counter) + 1; \
(temp_holder).len = (temp_counter) + 1; \
break; \
} \
Expand Down

0 comments on commit 3fd323e

Please sign in to comment.