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
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users

Reply via email to