From: Daniel Veillard Date: Thu, 12 Sep 2013 09:18:32 +0000 (+0800) Subject: Repair the search on libvirt.org X-Git-Tag: CVE-2013-4311~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a41e95db504f638ffe63e75d997344a2692bdb16;p=thirdparty%2Flibvirt.git Repair the search on libvirt.org First make sure that the input is xhtml as the stylesheets expect namespaced element, then use a span element instead of a as a is treated specially, finally adjust the makefile to check for the new span element and replace it with the PHP code --- diff --git a/docs/Makefile.am b/docs/Makefile.am index a76e06824d..c6a3eadc95 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -235,7 +235,7 @@ internals/%.html.tmp: internals/%.html.in subsite.xsl page.xsl sitemap.html.in %.php: %.php.tmp %.php.code.in @if [ -x $(XSLTPROC) ] ; then \ echo "Scripting $@"; \ - sed -e '/<\/a>/r '"$(srcdir)/$@.code.in" \ + sed -e '/<\/span>/r '"$(srcdir)/$@.code.in" \ -e /php_placeholder/d < $@.tmp > $(srcdir)/$@ \ || { rm $(srcdir)/$@ && exit 1; }; fi diff --git a/docs/search.php.in b/docs/search.php.in index ee8f4a3eda..3e1fea2535 100644 --- a/docs/search.php.in +++ b/docs/search.php.in @@ -1,5 +1,6 @@ - + + Search the documentation on Libvirt.org @@ -9,7 +10,7 @@ it simply provide a set of keywords: