WordPress.org

Ready to get started?Download WordPress

Forums

Custom Login
[resolved] Quotes in custom CSS gets replaced with useless quot escapes (5 posts)

  1. rajidae
    Member
    Posted 6 months ago #

    When I try to add some custom CSS containing quote characters they are all replaced with "e; escapes.

    It is as if the editor is in visual and not code/text mode.

    This bug makes it more or less impossible to use the custom CSS feature for anything useful.

    Se example below:

    h1 {
      content: "abc"
    }

    is replace with

    h1 {
      content: "abc";
    }

    http://wordpress.org/plugins/custom-login/

  2. Austin Passy
    Member
    Plugin Author

    Posted 6 months ago #

    This is fixed in version 2.2.1.

  3. rajidae
    Member
    Posted 6 months ago #

    Now the quoting in Custom CSS works but since the backslash is not allowed you are not able to use escapes in your CSS.

    For instance if you add a unicode escape sequence containing a slash into your CSS content attribute, the editor removes the slash when saved.

    Also the Custom HTML does no longer allow the perfectly legal style tag and just removes the tags upon save, leaving the CSS content inside dangling.

  4. Austin Passy
    Member
    Plugin Author

    Posted 6 months ago #

    I'll have to think about how to sanitize the CSS field but allow unicode. As for the HTML, you shouldn't be putting scripts or styles tags inside it.

  5. Austin Passy
    Member
    Plugin Author

    Posted 6 months ago #

    Got a fix in version 2.2.2. You can use custom keys to add a backslash. Example %%BSLASH%% becomes \.

    Taking suggestions on any others for future versions.

Reply

You must log in to post.

About this Plugin

About this Topic