{"action":"created","issue":{"url":"https://api.github.com/repos/jcrodriguez-dis/moodle-mod_vpl/issues/8","labels_url":"https://api.github.com/repos/jcrodriguez-dis/moodle-mod_vpl/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/jcrodriguez-dis/moodle-mod_vpl/issues/8/comments","events_url":"https://api.github.com/repos/jcrodriguez-dis/moodle-mod_vpl/issues/8/events","html_url":"https://github.com/jcrodriguez-dis/moodle-mod_vpl/issues/8","id":96843124,"number":8,"title":"unexpected EOF","user":{"login":"mariocav","id":1854795,"avatar_url":"https://avatars.githubusercontent.com/u/1854795?v=3","gravatar_id":"","url":"https://api.github.com/users/mariocav","html_url":"https://github.com/mariocav","followers_url":"https://api.github.com/users/mariocav/followers","following_url":"https://api.github.com/users/mariocav/following{/other_user}","gists_url":"https://api.github.com/users/mariocav/gists{/gist_id}","starred_url":"https://api.github.com/users/mariocav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariocav/subscriptions","organizations_url":"https://api.github.com/users/mariocav/orgs","repos_url":"https://api.github.com/users/mariocav/repos","events_url":"https://api.github.com/users/mariocav/events{/privacy}","received_events_url":"https://api.github.com/users/mariocav/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jcrodriguez-dis","id":2072039,"avatar_url":"https://avatars.githubusercontent.com/u/2072039?v=3","gravatar_id":"","url":"https://api.github.com/users/jcrodriguez-dis","html_url":"https://github.com/jcrodriguez-dis","followers_url":"https://api.github.com/users/jcrodriguez-dis/followers","following_url":"https://api.github.com/users/jcrodriguez-dis/following{/other_user}","gists_url":"https://api.github.com/users/jcrodriguez-dis/gists{/gist_id}","starred_url":"https://api.github.com/users/jcrodriguez-dis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcrodriguez-dis/subscriptions","organizations_url":"https://api.github.com/users/jcrodriguez-dis/orgs","repos_url":"https://api.github.com/users/jcrodriguez-dis/repos","events_url":"https://api.github.com/users/jcrodriguez-dis/events{/privacy}","received_events_url":"https://api.github.com/users/jcrodriguez-dis/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-07-23T15:41:08Z","updated_at":"2015-07-24T14:56:57Z","closed_at":null,"body":"Hello,\r\n\r\nthere is a possible issue when using a specific language and submitting a VPL activity. The module outputs:\r\n\r\n```\r\nvpl_environment.sh: line 7: unexpected EOF while looking for matching `''\r\nvpl_environment.sh: line 10: syntax error: unexpected end of file\r\n```\r\n\r\nI think the problem comes with the file **vpl_submission_CE.class.php**. Line 233:\r\n\r\n```\r\n$info .='export VPL_COMPILATIONFAILED=\\''.get_string('VPL_COMPILATIONFAILED',VPL).\"'\\n\";\r\n```\r\n\r\nshould be replaced with:\r\n\r\n```\r\n$info .='export VPL_COMPILATIONFAILED=\\''.get_string('VPL_COMPILATIONFAILED',VPL).\"\\n\";\r\n```\r\n\r\nRemoving the single quote inside the last part (**'\\n** to **\\n**) solves the problem.\r\n\r\nCatalan would be the only lang affected as it has an apostrophe on VPL_COMPILATIONFAILED. Spanish and English works well.\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/jcrodriguez-dis/moodle-mod_vpl/issues/comments/124550565","html_url":"https://github.com/jcrodriguez-dis/moodle-mod_vpl/issues/8#issuecomment-124550565","issue_url":"https://api.github.com/repos/jcrodriguez-dis/moodle-mod_vpl/issues/8","id":124550565,"user":{"login":"jcrodriguez-dis","id":2072039,"avatar_url":"https://avatars.githubusercontent.com/u/2072039?v=3","gravatar_id":"","url":"https://api.github.com/users/jcrodriguez-dis","html_url":"https://github.com/jcrodriguez-dis","followers_url":"https://api.github.com/users/jcrodriguez-dis/followers","following_url":"https://api.github.com/users/jcrodriguez-dis/following{/other_user}","gists_url":"https://api.github.com/users/jcrodriguez-dis/gists{/gist_id}","starred_url":"https://api.github.com/users/jcrodriguez-dis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcrodriguez-dis/subscriptions","organizations_url":"https://api.github.com/users/jcrodriguez-dis/orgs","repos_url":"https://api.github.com/users/jcrodriguez-dis/repos","events_url":"https://api.github.com/users/jcrodriguez-dis/events{/privacy}","received_events_url":"https://api.github.com/users/jcrodriguez-dis/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T14:56:57Z","updated_at":"2015-07-24T14:56:57Z","body":"Hello Mario,\r\nthe problem has been resolved using PHP addslashes function. The VPL updated version can be download from here as v3.1.4\r\nBest regards.\r\nJuan Carlos\r\n"}}