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

Case sensitive URLs in profile boxes get converted to lower case, making them unusable #2717

Open
Tigo2000 opened this issue Dec 29, 2016 · 1 comment

Comments

@Tigo2000
Copy link

Certain URLs not working in profile boxes

  • Case sensitive URLs in a <div style="background-image" element get converted to lowercase.

  • When editing a profile in https://oc.tc/account, using case sensitive URLs in a <div style="background-image" set to url(https://source.unsplash.com/S4V_T8UzXjs/1920x1080), the link is converted to url(https://source.unsplash.com/s4vt8uzxjs/1920x1080) (lowercase and underscore missing)

@freundTech
Copy link

As I reported this in the forums did a bit of additional research on this and found the following:

  • Text gets converted to lowercase in all tag properties, including style and class.
  • Special characters are only removed in style-properties.
  • Characters removed are _, ?, =, space and possibly more.

The first 3 characters are needed for URLs, which can be used in CSS for example for background images.
The space is not needed for URLs, but for CSS properties with multiple values (for example border: 1px solid black; or margin: 10 20;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants