Skip to content
This repository was archived by the owner on Aug 31, 2019. It is now read-only.
This repository was 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

Description

@Tigo2000

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)

Activity

  1. freundTech commented on Dec 29, 2016

    @freundTech

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions