diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-09-13 08:19:03 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-09-13 08:19:03 (GMT) |
commit | 08c9689157d7edc5d8e3369ef96f2ccd4b01c10c (patch) | |
tree | cd21aac30ff0de5301965b82244e3e17cc98ae9b /addon/doxysearch | |
parent | 9aac88b291f1b7b6d70ac9190cf7aef547cf8777 (diff) | |
download | Doxygen-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/doxysearch')
-rw-r--r-- | addon/doxysearch/doxysearch.cpp | 2 |
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; |