Make WordPress Core

Opened 5 years ago

Last modified 5 years ago

#48085 new defect (bug)

use wp_safe_redirect() function

Reported by: dkarfa's profile dkarfa Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Administration Keywords: has-patch close
Focuses: Cc:

Description


Attachments (1)

48085.patch (1.3 KB) - added by dkarfa 5 years ago.

Download all attachments as: .zip

Change History (2)

@dkarfa
5 years ago

#1 @SergeyBiryukov
5 years ago

  • Keywords close added

Thanks for the patch! It would be helpful to describe what problem it solves though :)

Looking at other instances of wp_safe_redirect() in the admin, it's only used in combination with wp_get_referer() to validate the target location sent by the client's browser.

I don't see a point in using it when the location is a known admin URL.

Note: See TracTickets for help on using tickets.