{"action":"opened","pull_request":{"created_at":"2011-11-26T17:49:00Z","state":"open","review_comments":0,"patch_url":"https://github.com/contao/core/pull/3.patch","changed_files":1,"updated_at":"2011-11-26T17:49:00Z","_links":{"review_comments":{"href":"https://api.github.com/repos/contao/core/pulls/3/comments"},"comments":{"href":"https://api.github.com/repos/contao/core/issues/3/comments"},"html":{"href":"https://github.com/contao/core/pull/3"},"self":{"href":"https://api.github.com/repos/contao/core/pulls/3"}},"user":{"gravatar_id":"1c0dba2e2d4914062d95c1f45099537b","id":357895,"url":"https://api.github.com/users/fbender","login":"fbender","avatar_url":"https://secure.gravatar.com/avatar/1c0dba2e2d4914062d95c1f45099537b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"issue_url":"https://github.com/contao/core/issues/3","comments":0,"deletions":5,"body":"The StyleSheet generator adds `../../` to external resources, e. g. `background-image:url(\"…\");`. This makes it impossible to use [data: URIs](https://developer.mozilla.org/en/data_URIs). Thus, I added some additional checks.\r\n\r\nAdditionally, I fixed the improper handling (or lack thereof) of special chars arising from Contao's secure input handling. Formerly, it was impossbile to use resource URLs like `image.php?id=25e34f`, MS Windows-style file paths or data: URIs with the base64 padding character (`=`)*. \r\n\r\n\r\n(*) According to the RFC 2397, `=` should be encoded as `%3D` in data: URIs, but it works in the major browsers without encoding, and not URL-encoding the value of `url()` is needed for the first example provided. ","merged":false,"commits":2,"mergeable":null,"id":530661,"base":{"user":{"gravatar_id":"a9f2ac20cba6a17964c01267ced44548","id":1206136,"url":"https://api.github.com/users/contao","login":"contao","avatar_url":"https://secure.gravatar.com/avatar/a9f2ac20cba6a17964c01267ced44548?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png"},"repo":{"created_at":"2011-11-19T17:27:16Z","pushed_at":"2011-11-22T14:45:01Z","private":false,"updated_at":"2011-11-26T17:27:51Z","clone_url":"https://github.com/contao/core.git","name":"core","watchers":27,"master_branch":null,"svn_url":"https://svn.github.com/contao/core","language":"PHP","forks":6,"owner":{"gravatar_id":"a9f2ac20cba6a17964c01267ced44548","id":1206136,"url":"https://api.github.com/users/contao","login":"contao","avatar_url":"https://secure.gravatar.com/avatar/a9f2ac20cba6a17964c01267ced44548?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png"},"id":2809805,"homepage":"http://www.contao.org","description":"Contao Open Source CMS","git_url":"git://github.com/contao/core.git","html_url":"https://github.com/contao/core","size":16552,"ssh_url":"git@github.com:contao/core.git","fork":false,"url":"https://api.github.com/repos/contao/core","open_issues":3},"sha":"351238232c52a526d9eb9b17e864aaf79fbaf6bd","ref":"master","label":"contao:master"},"number":3,"merged_by":null,"additions":20,"title":"Fix: do not alter data: URIs","head":{"user":{"gravatar_id":"1c0dba2e2d4914062d95c1f45099537b","id":357895,"url":"https://api.github.com/users/fbender","login":"fbender","avatar_url":"https://secure.gravatar.com/avatar/1c0dba2e2d4914062d95c1f45099537b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"repo":{"created_at":"2011-11-26T12:35:12Z","pushed_at":"2011-11-26T17:27:25Z","private":false,"updated_at":"2011-11-26T17:27:25Z","clone_url":"https://github.com/fbender/contao-core.git","name":"contao-core","watchers":1,"master_branch":null,"svn_url":"https://svn.github.com/fbender/contao-core","language":"PHP","forks":0,"owner":{"gravatar_id":"1c0dba2e2d4914062d95c1f45099537b","id":357895,"url":"https://api.github.com/users/fbender","login":"fbender","avatar_url":"https://secure.gravatar.com/avatar/1c0dba2e2d4914062d95c1f45099537b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":2855456,"homepage":"http://www.contao.org","description":"Contao Open Source CMS","git_url":"git://github.com/fbender/contao-core.git","html_url":"https://github.com/fbender/contao-core","size":172,"ssh_url":"git@github.com:fbender/contao-core.git","fork":true,"url":"https://api.github.com/repos/fbender/contao-core","open_issues":0},"sha":"ed983cec980d807f2007b61e6cb24bcf5baddd23","ref":"stylesheet-data-uri","label":"fbender:stylesheet-data-uri"},"html_url":"https://github.com/contao/core/pull/3","closed_at":null,"diff_url":"https://github.com/contao/core/pull/3.diff","url":"https://api.github.com/repos/contao/core/pulls/3","merged_at":null},"number":3}