src/hg/near/hgNear/association.c 1.14

1.14 2010/05/07 03:37:41 galt
using htmlEncode via new function hPrintEncodeNonBreak to protect against problems with <>;" in output, problem was recently uncovered by hgNearTest
Index: src/hg/near/hgNear/association.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/near/hgNear/association.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -b -B -U 4 -r1.13 -r1.14
--- src/hg/near/hgNear/association.c	3 Sep 2008 19:20:41 -0000	1.13
+++ src/hg/near/hgNear/association.c	7 May 2010 03:37:41 -0000	1.14
@@ -344,9 +344,9 @@
 	hPrintf("<A HREF=\"");
 	hPrintf(col->itemUrl, row[1]);
 	hPrintf("\" TARGET=_blank>");
 	}
-    hPrintNonBreak(s);
+    hPrintEncodedNonBreak(s);
     if (col->itemUrl)
         {
 	hPrintf("</A>");
 	}