Correctly check path. Same as #36789
A warning about open_basedir stuff
I have also tested with success. Still no "Test this" button for this PR in the issue tracker, but it has 2 human tests so I set it RTC (if that will work at least).
|Status||Pending||⇒||Ready to Commit|
|Status||Ready to Commit||⇒||Fixed in Code Base|
|Closed_Date||0000-00-00 00:00:00||⇒||2022-01-25 03:36:04|