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

Fix problems in path normalisation algorithm (#1541) #16

Conversation

LeonidVas
Copy link

Current implementation of path normalisation contains various flaws:

  • Trailing . and .. at the end of path don't get normalised,
  • Path / turns into an empty string after normalisation.

This patch changes implementation of normalisation to fix these.

(cherry picked from commit b8a2710)

Current implementation of path normalisation contains various flaws:

- Trailing `.` and `..` at the end of path don't get normalised,
- Path `/` turns into an empty string after normalisation.

This patch changes implementation of normalisation to fix these.

(cherry picked from commit b8a2710)
@LeonidVas LeonidVas merged commit e96d737 into luarocks-3.9.2-tarantool Oct 31, 2023
4 of 8 checks passed
@LeonidVas LeonidVas deleted the lvasiliev/gh-no-ticket-fix-path-normalisation branch October 31, 2023 12:23
@LeonidVas LeonidVas restored the lvasiliev/gh-no-ticket-fix-path-normalisation branch October 31, 2023 12:29
@LeonidVas LeonidVas deleted the lvasiliev/gh-no-ticket-fix-path-normalisation branch November 1, 2023 09:38
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.

2 participants