Active
Project:
Easy Email
Version:
3.0.7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Apr 2026 at 16:15 UTC
Updated:
28 Apr 2026 at 16:15 UTC
Jump to comment: Most recent
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
using php $email->setAttachmentIds([$fid]) to add the attachment with the #fid
i wonder if its never been tested on windows, just linux. may need to handle windows paths
Comments