WordPress.org

Make WordPress Core

Opened 4 months ago

Last modified 3 months ago

#41736 new defect (bug)

validate_file function will always return error for file paths in windows dev environments

Reported by: lechdulian Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.8
Component: Plugins Keywords: has-patch
Focuses: Cc:

Description

In Windows dev environments such as WAMP or XAMPP a file path always contains a colon after a drive letter, so all plugins making conditional checks with validate_file() would fail.

Attachments (1)

41736.patch (972 bytes) - added by subrataemfluence 3 months ago.
Patch considers windows environment file path like c:\folder\filename.ext

Download all attachments as: .zip

Change History (3)

@subrataemfluence
3 months ago

Patch considers windows environment file path like c:\folder\filename.ext

#1 @subrataemfluence
3 months ago

  • Keywords has-patch added

#2 @subrataemfluence
3 months ago

Hi, Welcome to Trac and thanks for the ticket!
I have uploaded a patch. Please can you test whether it works as desired?

Thank you!

Note: See TracTickets for help on using tickets.