Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

Allow SVG siteLogos to be specified as data: URIs #4181

Closed
wants to merge 1 commit into from

Conversation

callahad
Copy link
Contributor

The only legitimate MIME type for SVGs is "image/svg+xml", but our whitelist
contained "image/svg" instead.

As a result, data-URI encoded SVGs were not allowed as the siteLogo.

The only legitimate MIME type for SVGs is "image/svg+xml", but our whitelist
contained "image/svg" instead.

As a result, data-URI encoded SVGs were not allowed as the siteLogo.
@callahad
Copy link
Contributor Author

Tests pass locally. Travis is just acting up (#4179).

Manual verification also looks good.

@Osmose or @6a68, could I get a review?

@Osmose
Copy link
Contributor

Osmose commented Aug 24, 2014

Code looks good, r+. Logic for the change makes sense too.

If you expected me to run this code YOU'RE OUTTA YOUR MIND and should let me know to run the code.

);
});


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra space I assume?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also wtf is with this new github comment style it's freaking me out

@callahad
Copy link
Contributor Author

self-merging into future

@callahad
Copy link
Contributor Author

Fixed in c80fe2f

@callahad callahad closed this Oct 31, 2014
@callahad callahad deleted the fix_datauri_svgs branch October 31, 2014 20:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants