Skip to content

Commit

Permalink
Add missing escape in doxysearch.cpp when result contained a double q…
Browse files Browse the repository at this point in the history
…uote
  • Loading branch information
Dimitri van Heesch committed Sep 13, 2014
1 parent 9aac88b commit 08c9689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/doxysearch/doxysearch.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 08c9689

Please sign in to comment.