Skip to content

WP blocks the update/add new custom field with "onClick='this.select();" #35

Description

@OpossumPetya

Tried to add bookmarklet code to the post, but WP now blocks the update/add new custom field when there's JS events(?), error 403 in browser console:

<a href="javascript:(function(){var%20t=location.protocol+$(%22img[class*='postcard-image']%22).attr(%22src%22);$(%22img[class*='postcard-image']%22).after(%22%3Cp%3E%3Cbr/%3E%3Cinput%20type='text'%20style='width:500px'%20onClick='this.select();'%20value='%22+t+%22'%20/%3E%3C/p%3E%22)})();">Postcard Image Address</a>

Once I removed onClick='this.select(); it was accepted.

Edit:
WordPress - 5.2.3
Code Embed - 2.3.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions