I'm unable to attach files on window, i get the error, Attachment not in allowed path

I'm unable to attach files on window, i get the error

    Attachment not in allowed path: private://final/report.pending.030126_0.pdf

the allowed paths is set to 

    private://final/*

the patterns failing comparison in pcreFnmatch end up being the below,

    string: C:\Workspace\Apache24\htdocs\sites\default\files\private\final\report.pending.030126_0.pdf
    pattern: #^C\:\\Workspace\\Apache24\\htdocs\\sites\\default\\files\\private\\final/[^/]*$#i

Steps to reproduce

using php $email->setAttachmentIds([$fid]) to add the attachment with the #fid

Proposed resolution

i wonder if its never been tested on windows, just linux. may need to handle windows paths

Remaining tasks

User interface changes

API changes

Data model changes

Comments

tomwlane created an issue.