{"action":"opened","issue":{"url":"https://api.github.com/repos/doxygen/doxygen/issues/5635","repository_url":"https://api.github.com/repos/doxygen/doxygen","labels_url":"https://api.github.com/repos/doxygen/doxygen/issues/5635/labels{/name}","comments_url":"https://api.github.com/repos/doxygen/doxygen/issues/5635/comments","events_url":"https://api.github.com/repos/doxygen/doxygen/issues/5635/events","html_url":"https://github.com/doxygen/doxygen/issues/5635","id":337466999,"node_id":"MDU6SXNzdWUzMzc0NjY5OTk=","number":5635,"title":"doxysearch.cpp generates invalid JSON in certain circumstances (Origin: bugzilla #737162)","user":{"login":"doxygen","id":1300762,"node_id":"MDQ6VXNlcjEzMDA3NjI=","avatar_url":"https://avatars3.githubusercontent.com/u/1300762?v=4","gravatar_id":"","url":"https://api.github.com/users/doxygen","html_url":"https://github.com/doxygen","followers_url":"https://api.github.com/users/doxygen/followers","following_url":"https://api.github.com/users/doxygen/following{/other_user}","gists_url":"https://api.github.com/users/doxygen/gists{/gist_id}","starred_url":"https://api.github.com/users/doxygen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doxygen/subscriptions","organizations_url":"https://api.github.com/users/doxygen/orgs","repos_url":"https://api.github.com/users/doxygen/repos","events_url":"https://api.github.com/users/doxygen/events{/privacy}","received_events_url":"https://api.github.com/users/doxygen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-02T10:47:23Z","updated_at":"2018-07-02T10:47:23Z","closed_at":null,"author_association":"OWNER","body":"status RESOLVED severity *normal* in component *general* for *---*\nReported in version *1.8.6* on platform *Other*\nAssigned to: Dimitri van Heesch\n\nOn 2014-09-23 09:42:51 +0000, keith.robinson@nexor.com wrote:\n\n> Given a C++ global variable that looks like the following:\n> \n> const std::string TheNamespace::g_Name(\"some text\");\n> \n> When a search is performed (after the above has been added to the search database using doxyindexer) using the search query \"TheNamespace\" (without the quotes), the JSON generated looks something like this:\n> \n> start omitted for clarity â¦\n> \"type\": \"function\",\n> \"name\": \"TheNamespace::g_Name(\"some text\")\",\n> âtagâ,\n> â¦ end omitted for clarity\n> \n> 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).\n> \n> This was fixed in our local copy of doxysearch.cpp by wrapping the call to âdoc.get_value(FIELD_ARGS)â in a call to escapeString(). However, I wasn't sure whether other parts of the JSON should also be escaped, and so haven't submitted a patch.\n> \n> Although filed against Linux (where we use Doxygen) I assume this is a cross platform issue.\n\nOn 2014-09-23 17:58:08 +0000, Dimitri van Heesch wrote:\n\n> hi Keith,\n> \n> I've already include this fix:\n> https://github.com/doxygen/doxygen/commit/SHA: 08c9689157d7edc5d8e3369ef96f2ccd4b01c10c\n> \n> Let me know if it solves the problem.\n\nOn 2014-12-25 16:03:04 +0000, Dimitri van Heesch wrote:\n\n> This bug was previously marked ASSIGNED, which means it should be fixed in\n> doxygen version 1.8.9. Please verify if this is indeed the case. Reopen the\n> bug if you think it is not fixed and please include any additional information \n> that you think can be relevant (preferrably in the form of a self-contained example).\n\n"}}
{"actor":{"display_login":"doxygen"}}