Case sensitive URLs in profile boxes get converted to lower case, making them unusable
Tigo2000 opened this issue · 1 comments
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 tourl(https://source.unsplash.com/S4V_T8UzXjs/1920x1080)
, the link is converted tourl(https://source.unsplash.com/s4vt8uzxjs/1920x1080)
(lowercase and underscore missing)
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
andclass
. - 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;
)