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 invalid link #2363

Merged
merged 5 commits into from
Aug 28, 2024
Merged

Fix invalid link #2363

merged 5 commits into from
Aug 28, 2024

Conversation

ismaelbej
Copy link
Contributor

@ismaelbej ismaelbej commented Aug 27, 2024

Changes

  • Fix invalid short links to return 404

Closes #2345

@ismaelbej ismaelbej marked this pull request as ready for review August 28, 2024 17:30
Copy link
Member

@matiasgarciaisaia matiasgarciaisaia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Great one!

Welcome aboard :)

:shipit:

Comment on lines +15 to +19
# Copied from Plug.Adapters.Cowboy.Conn
defp split_path(path) do
segments = :binary.split(path, "/", [:global])
for segment <- segments, segment != "", do: segment
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't even have moved this function, so the diff was even more clear :)

@matiasgarciaisaia matiasgarciaisaia merged commit fa5692c into main Aug 28, 2024
2 checks passed
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.

Invalid public links should return a 404 error
2 participants