Module: sip-router Branch: master Commit: dd004947906628784ffdf15a0fe5cf4421040ddc URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=dd004947...
Author: Ovidiu Sas osas@voipembedded.com Committer: Ovidiu Sas osas@voipembedded.com Date: Tue Apr 1 18:34:28 2014 -0400
xhttp_pi: fix escaping
---
modules/xhttp_pi/xhttp_pi_fnc.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/modules/xhttp_pi/xhttp_pi_fnc.c b/modules/xhttp_pi/xhttp_pi_fnc.c index 71f6fbc..5602429 100644 --- a/modules/xhttp_pi/xhttp_pi_fnc.c +++ b/modules/xhttp_pi/xhttp_pi_fnc.c @@ -252,31 +252,31 @@ do{ \ case '<': \ (temp_holder).len = (temp_counter) - (temp_holder).len; \ XHTTP_PI_COPY_2(p, (temp_holder), XHTTP_PI_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; \ XHTTP_PI_COPY_2(p, (temp_holder), XHTTP_PI_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; \ XHTTP_PI_COPY_2(p, (temp_holder), XHTTP_PI_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; \ XHTTP_PI_COPY_2(p, (temp_holder), XHTTP_PI_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; \ XHTTP_PI_COPY_2(p, (temp_holder), XHTTP_PI_ESC_SQUOT); \ - (temp_holder).s += (temp_counter) + 1; \ + (temp_holder).s = (str).s + (temp_counter) + 1; \ (temp_holder).len = (temp_counter) + 1; \ break; \ } \ @@ -385,7 +385,7 @@ static const str XHTTP_PI_Response_Foot = str_init(\ "\n</center>\n<div align="center" class="foot" style="margin:20px auto">"\ "<span style='margin-left:5px;'></span>"\ "<a href="http://kamailio.org%5C%22%3EKamailio web site</a><br/>"\ - "Copyright © 2012-2013 <a href="http://www.voipembedded.com/%5C%22%3EVoIP Embedded Inc.</a>"\ + "Copyright © 2012-2014 <a href="http://www.voipembedded.com/%5C%22%3EVoIP Embedded Inc.</a>"\ ". All rights reserved."\ "</div></body></html>");