Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue-82-Inconsistencies-with-DOC__ROOT #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ajuszczyk
Copy link

@ajuszczyk ajuszczyk commented Apr 28, 2023

A fix for $issue82.

The DOC__ROOT const is supposed to be set with a trailing forward slash but in at least one of its use cases, we concatenate with a string that leads with a forward slash, causing a double forward slash in the path.
It appears that Apache will handle this gracefully but NginX does not and will fail to find the included file.
Suggested fix is to remove any forward slashes at the start of strings concatenated with the DOC__ROOT constant.

The fix does as sugessted, removes any extra forward slashes.

@ajuszczyk ajuszczyk changed the title Fix double forward slashes with DCO__ROOT ajuszczyk:Issue-82-Inconsistencies-with-DOC__ROOT Apr 28, 2023
@ajuszczyk ajuszczyk changed the title ajuszczyk:Issue-82-Inconsistencies-with-DOC__ROOT Issue-82-Inconsistencies-with-DOC__ROOT Apr 28, 2023
@Sephster
Copy link
Collaborator

Hi @ajuszczyk - thanks for the PR. Because this is a public repo, we need to log information about the changes for future users/maintainers.

Please could you like this to the corresponding issue and provide a description detailing what the problem was and how your PR fixes it? Thank you and thanks again for the PR

@ajuszczyk
Copy link
Author

I'm afraid I don't have pesrission to link this PR to the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants