[Doxygen-users] Bug in doxysearch.cpp?
Brought to you by:
dimitri
From: Keith R. <Kei...@ne...> - 2014-09-12 15:01:20
|
Hi, We use the webserver doxygen search capability using the provided doxysearch.cgi and doxyindexer. We noticed an issue when searching for a particular word (a C++ namespace) and a blank screen appeared in the search results. After debugging it appears that one of the returned search items is a global variable, something like: const std::string TheNamespace::g_Name("some text"); The search query used was TheNamespace. The search tagged this item as a "function" type. The resultant JSON was: start omitted ... "type": "function", "name": "TheNamespace::g_Name("some text")", "tag", ... end omitted. The value of "name" is invalid JSON due to the quotes in the constructor (the console output of Chrome also reported an error - presumably from the getJSON call in the searchFor JavaScript function). In our local version of doxysearch.cpp I wrapped the call to "doc.get_value(FIELD_ARGS)" in a call to escapeString() which seems to fix the problem. Hope this helps! Keith |