1259dfea0041943936efe6831bbcf716c6b0cf4b tdreszer Tue Jul 27 15:13:50 2010 -0700 htmlEncode has been imprived with a newline char. However, FF does not support it diff --git src/lib/htmshell.c src/lib/htmshell.c index 3ad714d..0dc8af5 100644 --- src/lib/htmshell.c +++ src/lib/htmshell.c @@ -153,7 +153,10 @@ strSwapStrs(cleanQuote, size,"&" ,"&" ); // '&' is not the start of a control char strSwapStrs(cleanQuote, size,">" ,">" ); // '>' is not the close of a tag strSwapStrs(cleanQuote, size,"<" ,"<" ); // '<' is not the open of a tag - strSwapStrs(cleanQuote, size,"\n","|"); // new lines replaced with '|' for lack of a better alternative + if(cgiClientBrowser(NULL,NULL,NULL) == btFF) + strSwapStrs(cleanQuote, size,"\n","|"); // FF does not support! Use "|" for '|' instead + else + strSwapStrs(cleanQuote, size,"\n","
"); // '\n' is supported on some browsers } strSwapStrs(cleanQuote, size,"\"","""); // Shield double quotes strSwapStrs(cleanQuote, size,"'" ,"'" ); // Shield single quotes