src/hg/near/hgNear/go.c 1.22
1.22 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/go.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/near/hgNear/go.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -b -B -U 4 -r1.21 -r1.22
--- src/hg/near/hgNear/go.c 3 May 2007 21:31:58 -0000 1.21
+++ src/hg/near/hgNear/go.c 7 May 2010 03:37:41 -0000 1.22
@@ -122,9 +122,9 @@
hPrintf("<A HREF=\"http://amigo.geneontology.org/cgi-bin/amigo/go.cgi?view=details&search_constraint=terms&depth=0&query=%s\" TARGET=_blank>", row[1]);
// hPrintf("<A HREF=\"http://www.ebi.ac.uk/ego/GSearch?query=%s&mode=id\" TARGET=_blank>", row[1]);
// hPrintf("<A HREF=\"http://www.ebi.ac.uk/ego/DisplayGoTerm?id=%s&viz=tree\" TARGET=_blank>", row[1]);
- hPrintNonBreak(row[0]);
+ hPrintEncodedNonBreak(row[0]);
hPrintf("</A>");
hPrintf("'");
}
}