Make WordPress Core

Opened 9 years ago

Last modified 9 years ago

#41736 new defect (bug)

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

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

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 9 years ago.
Patch considers windows environment file path like c:\folder\filename.ext

Download all attachments as: .zip

Change History (3)

@subrataemfluence
9 years ago

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

#1 @subrataemfluence
9 years ago

  • Keywords has-patch added

#2 @subrataemfluence
9 years 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.