svn commit: samba r6395 - in branches/SAMBA_3_0/source/web: .
deryck at samba.org
deryck at samba.org
Tue Apr 19 21:35:43 GMT 2005
Author: deryck
Date: 2005-04-19 21:35:42 +0000 (Tue, 19 Apr 2005)
New Revision: 6395
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6395
Log:
Fix for Bug 2137, from Jay Fenlason <fenlason at redhat.com>
Encode quotes for display in HTML.
deryck
Modified:
branches/SAMBA_3_0/source/web/swat.c
Changeset:
Modified: branches/SAMBA_3_0/source/web/swat.c
===================================================================
--- branches/SAMBA_3_0/source/web/swat.c 2005-04-19 21:19:43 UTC (rev 6394)
+++ branches/SAMBA_3_0/source/web/swat.c 2005-04-19 21:35:42 UTC (rev 6395)
@@ -215,11 +215,11 @@
if ((char ***)ptr && *(char ***)ptr && **(char ***)ptr) {
char **list = *(char ***)ptr;
for (;*list;list++) {
- /* enclose in quotes if the string contains a space */
+ /* enclose in HTML encoded quotes if the string contains a space */
if ( strchr_m(*list, ' ') ) {
push_utf8_allocate(&utf8_s1, *list);
push_utf8_allocate(&utf8_s2, ((*(list+1))?", ":""));
- printf("\'%s\'%s", utf8_s1, utf8_s2);
+ printf(""%s"%s", utf8_s1, utf8_s2);
} else {
push_utf8_allocate(&utf8_s1, *list);
push_utf8_allocate(&utf8_s2, ((*(list+1))?", ":""));
@@ -235,9 +235,9 @@
if (parm->def.lvalue) {
char **list = (char **)(parm->def.lvalue);
for (; *list; list++) {
- /* enclose in quotes if the string contains a space */
+ /* enclose in HTML encoded quotes if the string contains a space */
if ( strchr_m(*list, ' ') )
- printf("\'%s\'%s", *list, ((*(list+1))?", ":""));
+ printf(""%s"%s", *list, ((*(list+1))?", ":""));
else
printf("%s%s", *list, ((*(list+1))?", ":""));
}
More information about the samba-cvs
mailing list