{"action":"created","issue":{"url":"https://api.github.com/repos/django-compressor/django-compressor/issues/878","repository_url":"https://api.github.com/repos/django-compressor/django-compressor","labels_url":"https://api.github.com/repos/django-compressor/django-compressor/issues/878/labels{/name}","comments_url":"https://api.github.com/repos/django-compressor/django-compressor/issues/878/comments","events_url":"https://api.github.com/repos/django-compressor/django-compressor/issues/878/events","html_url":"https://github.com/django-compressor/django-compressor/issues/878","id":257362641,"number":878,"title":"Parsing of quoted data URLs can produce wrong quoting in compressor.filters.css_default.CssAbsoluteFilter","user":{"login":"shezi","id":690171,"avatar_url":"https://avatars3.githubusercontent.com/u/690171?v=4","gravatar_id":"","url":"https://api.github.com/users/shezi","html_url":"https://github.com/shezi","followers_url":"https://api.github.com/users/shezi/followers","following_url":"https://api.github.com/users/shezi/following{/other_user}","gists_url":"https://api.github.com/users/shezi/gists{/gist_id}","starred_url":"https://api.github.com/users/shezi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shezi/subscriptions","organizations_url":"https://api.github.com/users/shezi/orgs","repos_url":"https://api.github.com/users/shezi/repos","events_url":"https://api.github.com/users/shezi/events{/privacy}","received_events_url":"https://api.github.com/users/shezi/received_events","type":"User","site_admin":false},"labels":[{"id":91438,"url":"https://api.github.com/repos/django-compressor/django-compressor/labels/bug","name":"bug","color":"e10c02","default":true},{"id":472305802,"url":"https://api.github.com/repos/django-compressor/django-compressor/labels/needinfo","name":"needinfo","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-09-13T12:30:26Z","updated_at":"2017-10-09T07:48:40Z","closed_at":null,"author_association":"NONE","body":"I am compressing bootstrap4 with django-compress, and it wrongly quotes one of the svg backgrounds.\r\n\r\nIt turns this:\r\n`background-image: url(\"data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E\"); }`\r\n\r\ninto this:\r\n`background-image: url(\"data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5\")' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E\"); }`\r\n\r\nIt's a bit hard to see, but there's an extra `\"` inserted in `rgba(255, 255, 255, 0.5\")`. This extra quoting invalidates most of the CSS that follows (up until another SVG background inserts another quote, re-starting CSS rules).\r\n\r\nOne workaround is to disable `compressor.filters.css_default.CssAbsoluteFilter`.\r\n\r\nThis issue could be related to #485"},"comment":{"url":"https://api.github.com/repos/django-compressor/django-compressor/issues/comments/335086136","html_url":"https://github.com/django-compressor/django-compressor/issues/878#issuecomment-335086136","issue_url":"https://api.github.com/repos/django-compressor/django-compressor/issues/878","id":335086136,"user":{"login":"karyon","id":1891915,"avatar_url":"https://avatars0.githubusercontent.com/u/1891915?v=4","gravatar_id":"","url":"https://api.github.com/users/karyon","html_url":"https://github.com/karyon","followers_url":"https://api.github.com/users/karyon/followers","following_url":"https://api.github.com/users/karyon/following{/other_user}","gists_url":"https://api.github.com/users/karyon/gists{/gist_id}","starred_url":"https://api.github.com/users/karyon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karyon/subscriptions","organizations_url":"https://api.github.com/users/karyon/orgs","repos_url":"https://api.github.com/users/karyon/repos","events_url":"https://api.github.com/users/karyon/events{/privacy}","received_events_url":"https://api.github.com/users/karyon/received_events","type":"User","site_admin":false},"created_at":"2017-10-09T07:48:40Z","updated_at":"2017-10-09T07:48:40Z","author_association":"CONTRIBUTOR","body":"that compresses just fine for me as well :( could you give me your settings.py, some more context of the css file (ideally the whole one) and the template where you are including this?"}}
{"actor":{"display_login":"karyon"}}