Klaus Demo nginx / 1020536
Merge of r4313: Added escaping of double quotes in ngx_escape_html(). Patch by Zaur Abasmirzoev. Maxim Dounin 10 years ago
1 changed file(s) with 9 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
16561656 len += sizeof("&") - 2;
16571657 break;
16581658
1659 case '"':
1660 len += sizeof(""") - 2;
1661 break;
1662
16591663 default:
16601664 break;
16611665 }
16811685 case '&':
16821686 *dst++ = '&'; *dst++ = 'a'; *dst++ = 'm'; *dst++ = 'p';
16831687 *dst++ = ';';
1688 break;
1689
1690 case '"':
1691 *dst++ = '&'; *dst++ = 'q'; *dst++ = 'u'; *dst++ = 'o';
1692 *dst++ = 't'; *dst++ = ';';
16841693 break;
16851694
16861695 default: