WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#42419 new defect (bug)

Text widget accepts invalid media URL

Reported by: nirmalcm Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.8.3
Component: General Keywords: needs-patch
Focuses: Cc:
PR Number:

Description

I am noticed that text widget accepts invalid URL.

Steps to Repro:-
1) Select text widget from the “Appearance–>Widgets”
2) Click on “Add Media” button.
3) Click on “insert from URL”.
4) Add a invalid URL like “jnwfjkewwwnnwfkjfkjewkjfnkje”.
5) Click on “insert into post” button.
6) Click on “Done”

Attachments (1)

import_media_from_url_problem.jpg (105.4 KB) - added by mbelchev 2 years ago.

Download all attachments as: .zip

Change History (2)

#1 @mbelchev
2 years ago

  • Keywords needs-patch added

Seems like the error handling is not working properly. When you type an invalid URL the browser console is throwing an error but the user is not notified for it.

Also, the user is allowed to click "Insert into post" even there is a console error and the URL is invalid. So I confirm the reported bug by @nirmalcm

Attaching photo below.

Last edited 2 years ago by mbelchev (previous) (diff)
Note: See TracTickets for help on using tickets.