Permalink
Browse files

Add missing escape in doxysearch.cpp when result contained a double q…

…uote
  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Sep 13, 2014
1 parent 9aac88b commit 08c9689157d7edc5d8e3369ef96f2ccd4b01c10c
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 08c9689

Please sign in to comment.