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

Incorrect path supplied by wsapi.cgi #37

Open
davidgiven opened this issue Jan 11, 2015 · 0 comments
Open

Incorrect path supplied by wsapi.cgi #37

davidgiven opened this issue Jan 11, 2015 · 0 comments

Comments

@davidgiven
Copy link

wsapi.cgi uses "$@" to get the path to the script. This doesn't work if the script path is a relative filename such as 'fnord.cgi'; the path parsing fails later on as it gets confused about where the script is.

I've managed to bodge it by using "$PWD/$@", but it should really be canonicalising the path.

(Apache's suexec does this; it seems to cd into the cgi-bin directory before running the script.)

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

No branches or pull requests

1 participant