Welcome! Log In Create A New Profile

Advanced

[nginx] svn commit: r4313 - trunk/src/core

Anonymous User
November 25, 2011 11:38AM
Author: mdounin
Date: 2011-11-25 16:36:02 +0000 (Fri, 25 Nov 2011)
New Revision: 4313

Log:
Added escaping of double quotes in ngx_escape_html().

Patch by Zaur Abasmirzoev.


Modified:
trunk/src/core/ngx_string.c

Modified: trunk/src/core/ngx_string.c
===================================================================
--- trunk/src/core/ngx_string.c 2011-11-23 14:09:19 UTC (rev 4312)
+++ trunk/src/core/ngx_string.c 2011-11-25 16:36:02 UTC (rev 4313)
@@ -1657,6 +1657,10 @@
len += sizeof("&") - 2;
break;

+ case '"':
+ len += sizeof(""") - 2;
+ break;
+
default:
break;
}
@@ -1684,6 +1688,11 @@
*dst++ = ';';
break;

+ case '"':
+ *dst++ = '&'; *dst++ = 'q'; *dst++ = 'u'; *dst++ = 'o';
+ *dst++ = 't'; *dst++ = ';';
+ break;
+
default:
*dst++ = ch;
break;

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] svn commit: r4313 - trunk/src/core

Anonymous User 1301 November 25, 2011 11:38AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 66
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready