summaryrefslogtreecommitdiffstats
path: root/addon
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-09-13 08:19:03 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-09-13 08:19:03 (GMT)
commit08c9689157d7edc5d8e3369ef96f2ccd4b01c10c (patch)
treecd21aac30ff0de5301965b82244e3e17cc98ae9b /addon
parent9aac88b291f1b7b6d70ac9190cf7aef547cf8777 (diff)
downloadDoxygen-08c9689157d7edc5d8e3369ef96f2ccd4b01c10c.zip
Doxygen-08c9689157d7edc5d8e3369ef96f2ccd4b01c10c.tar.gz
Doxygen-08c9689157d7edc5d8e3369ef96f2ccd4b01c10c.tar.bz2
Add missing escape in doxysearch.cpp when result contained a double quote
Diffstat (limited to 'addon')
-rw-r--r--addon/doxysearch/doxysearch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/addon/doxysearch/doxysearch.cpp b/addon/doxysearch/doxysearch.cpp
index 11af8e3..d885502 100644
--- a/addon/doxysearch/doxysearch.cpp
+++ b/addon/doxysearch/doxysearch.cpp
@@ -401,7 +401,7 @@ int main(int argc,char **argv)
Xapian::Document doc = i.get_document();
highlighter(doc.get_value(FIELD_DOC),words,hl);
std::cout << " {\"type\": \"" << doc.get_value(FIELD_TYPE) << "\"," << std::endl
- << " \"name\": \"" << doc.get_value(FIELD_NAME) << doc.get_value(FIELD_ARGS) << "\"," << std::endl
+ << " \"name\": \"" << doc.get_value(FIELD_NAME) << escapeString(doc.get_value(FIELD_ARGS)) << "\"," << std::endl
<< " \"tag\": \"" << doc.get_value(FIELD_TAG) << "\"," << std::endl
<< " \"url\": \"" << doc.get_value(FIELD_URL) << "\"," << std::endl;
std::cout << " \"fragments\":[" << std::endl;