OSDN Git Service

docs: fix XSS vulnerability in search
authorScott Main <smain@google.com>
Wed, 28 Oct 2009 16:50:06 +0000 (09:50 -0700)
committerScott Main <smain@google.com>
Wed, 28 Oct 2009 21:42:40 +0000 (14:42 -0700)
commit3534daddeefefbd42ea0a3819348327e5d85315c
tree923677f09e9473383570b86310103b7aeb1c6066
parentd14f1bd7e4ba28489bdc472aa736aee5a587cb98
docs: fix XSS vulnerability in search

add a function that uses replace() to replace all
instances of '<' and '>' with the HTML entities and use
this wherever the query text is added onto the page.
docs/html/search.jd