You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The custom URLs entered in an image block are not being sanitized / validated, so entering an URL without the schema (http(s)://) will create a relative URL.
To reproduce
Insert an image block and upload/select an image.
On the block toolbar, click on "Edit link".
Enter an address without http:// or https:// (i.e. wordpress.org).
Publish the page/post.
Visit the published post/page.
Expected behavior
To be taken to the external website upon clicking the image, but instead you're taken to an internal path (i.e. example.com/2019/08/23/my-post/wordpress.org).
The text was updated successfully, but these errors were encountered:
Describe the bug
The custom URLs entered in an image block are not being sanitized / validated, so entering an URL without the schema (
http(s)://
) will create a relative URL.To reproduce
wordpress.org
).Expected behavior
To be taken to the external website upon clicking the image, but instead you're taken to an internal path (i.e.
example.com/2019/08/23/my-post/wordpress.org
).The text was updated successfully, but these errors were encountered: