{"action":"closed","issue":{"url":"https://api.github.com/repos/andig/moode/issues/6","labels_url":"https://api.github.com/repos/andig/moode/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/andig/moode/issues/6/comments","events_url":"https://api.github.com/repos/andig/moode/issues/6/events","html_url":"https://github.com/andig/moode/issues/6","id":101367109,"number":6,"title":"can we send multiple mpd commands?","user":{"login":"andig","id":184815,"avatar_url":"https://avatars.githubusercontent.com/u/184815?v=3","gravatar_id":"","url":"https://api.github.com/users/andig","html_url":"https://github.com/andig","followers_url":"https://api.github.com/users/andig/followers","following_url":"https://api.github.com/users/andig/following{/other_user}","gists_url":"https://api.github.com/users/andig/gists{/gist_id}","starred_url":"https://api.github.com/users/andig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andig/subscriptions","organizations_url":"https://api.github.com/users/andig/orgs","repos_url":"https://api.github.com/users/andig/repos","events_url":"https://api.github.com/users/andig/events{/privacy}","received_events_url":"https://api.github.com/users/andig/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-17T08:20:49Z","updated_at":"2015-08-17T14:04:49Z","closed_at":"2015-08-17T14:04:49Z","body":"From what I've seen, sending a command always needs to read the response. However, we also have code like this:\r\n\r\n\tcase 'savepl':\r\n\t\tif (isset($_GET['plname']) && $_GET['plname'] != '') {\r\n\t\t\tsendMpdCommand($mpd,\"rm \\\"\" .html_entity_decode($_GET['plname']) . \"\\\"\");\r\n\t\t\tsendMpdCommand($mpd,\"save \\\"\" .html_entity_decode($_GET['plname']) . \"\\\"\");\r\n\t\t\t$res = readMpdResponse($mpd);\r\n\t\t}\r\n\t\tbreak;\r\n\r\nIs this broken and should rather send+read response? How das mpd handle \" signs?"}}