Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Make directory check portable #332
The current function did not work properly on Windows as there is a mismatch on slashes between what was returned by dirname and document_root.
Motivation and Context
Helping to setup an installation in Windows I needed to debug why all links were using the local path which lead to finding this.
How Has This Been Tested?
Tested in a no subdir windows install, SO says that's the really portable way to do with 20 upvotes but not really tested outside that installation.
Screenshots (if appropriate):
Types of changes