{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/connect-phonegap/issues/182","repository_url":"https://api.github.com/repos/phonegap/connect-phonegap","labels_url":"https://api.github.com/repos/phonegap/connect-phonegap/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/connect-phonegap/issues/182/comments","events_url":"https://api.github.com/repos/phonegap/connect-phonegap/issues/182/events","html_url":"https://github.com/phonegap/connect-phonegap/issues/182","id":189120961,"number":182,"title":"Content Security Policy gets replaced when it contains line breaks","user":{"login":"light","id":287838,"avatar_url":"https://avatars.githubusercontent.com/u/287838?v=3","gravatar_id":"","url":"https://api.github.com/users/light","html_url":"https://github.com/light","followers_url":"https://api.github.com/users/light/followers","following_url":"https://api.github.com/users/light/following{/other_user}","gists_url":"https://api.github.com/users/light/gists{/gist_id}","starred_url":"https://api.github.com/users/light/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/light/subscriptions","organizations_url":"https://api.github.com/users/light/orgs","repos_url":"https://api.github.com/users/light/repos","events_url":"https://api.github.com/users/light/events{/privacy}","received_events_url":"https://api.github.com/users/light/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-14T14:09:19Z","updated_at":"2016-11-15T23:00:52Z","closed_at":null,"body":" phonegap version 6.3.5\r\n\r\nThe phonegap cli tool adds its own values to the CSP tag when streaming to the phonegap mobile app, however when there are line breaks in the source tag it does not modify it but overrides it instead. It seems due to a regexp in https://github.com/phonegap/connect-phonegap/blob/0.24.0/lib/util/injector-transform.js which checks for a single line only."},"comment":{"url":"https://api.github.com/repos/phonegap/connect-phonegap/issues/comments/260798212","html_url":"https://github.com/phonegap/connect-phonegap/issues/182#issuecomment-260798212","issue_url":"https://api.github.com/repos/phonegap/connect-phonegap/issues/182","id":260798212,"user":{"login":"timkim","id":57922,"avatar_url":"https://avatars.githubusercontent.com/u/57922?v=3","gravatar_id":"","url":"https://api.github.com/users/timkim","html_url":"https://github.com/timkim","followers_url":"https://api.github.com/users/timkim/followers","following_url":"https://api.github.com/users/timkim/following{/other_user}","gists_url":"https://api.github.com/users/timkim/gists{/gist_id}","starred_url":"https://api.github.com/users/timkim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timkim/subscriptions","organizations_url":"https://api.github.com/users/timkim/orgs","repos_url":"https://api.github.com/users/timkim/repos","events_url":"https://api.github.com/users/timkim/events{/privacy}","received_events_url":"https://api.github.com/users/timkim/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T23:00:52Z","updated_at":"2016-11-15T23:00:52Z","body":"Hi @light \r\n\r\nYes, as @surajpindoria said, the csp for some apps needs to be replaced in order for critical features of the dev app to work. However, I have updated the regex to be more forgiving with the help of @mwbrooks . In addition, the changes to the regex should help some with some bugs regarding the csp. "}}
{"actor":{"display_login":"timkim"}}