[wp-trac] Re: [WordPress Trac] #5953: Absolute upload_path fails
WordPress Trac
wp-trac at lists.automattic.com
Tue May 12 16:48:34 GMT 2009
#5953: Absolute upload_path fails
--------------------------+-------------------------------------------------
Reporter: tellyworth | Owner: tellyworth
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 2.9
Component: Upload | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+-------------------------------------------------
Comment(by nbachiyski):
{{{$PWD}}} is different than {{{realpath('.')}}}. realpath resolves
symlinks and relative references ({{{.}}} and {{{..}}}). Historically it
had caused a lot of problems in the UNIX world, because of strange/buggy
implementations.
If realpath fails, we can use dirname to resolve at least . and .. and
forget about the symlinks.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/5953#comment:14>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list