[pmwiki-users] Suppress WARNING in pmwiki.php

Peter Bowers pbowers at pobox.com
Tue Apr 18 05:37:19 CDT 2017


On Sun, Apr 16, 2017 at 12:21 PM, Petko Yotov <5ko at 5ko.fr> wrote:

> I don't use Windows but I wonder why a path like "wiki.d/D:\path\file.txt"
> is considered external to wiki.d or even possible.


Probably this has already been communicated and I just missed it, but just
to be clear...

"wiki.d/D:\domains\web-pack-001.package\httpdocs\mydomain.co.uk\1.local.farmmap.txt"
is not a legitimate windows path as far as I understand. There's a
mis-configuration somewhere where an absolute path (i.e., starting with
"D:\") was specified when a relative path (under wiki.d or some other
pagestore) was needed.

If that path ever gets passed to Pagestore::exists() then I would think
that it's not bad to have an error message appear. In my mind it's the
moral equivalent of a syntax error but from a configuration perspective. So
suppressing the error message with @ may or may not be a good idea... It's
true that from a pmwiki perspective it's legitimate, but it may make life
harder for the person trying to track down the configuration problem.

-Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20170418/e0e8d00c/attachment.html>


More information about the pmwiki-users mailing list