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

RFC3986.decodeURIComponent #830

Open
melloware opened this issue Jan 22, 2025 · 2 comments
Open

RFC3986.decodeURIComponent #830

melloware opened this issue Jan 22, 2025 · 2 comments
Labels

Comments

@melloware
Copy link
Contributor

From Zulip could you make sure we add the decode RFC3986.decodeURIComponent(context.normalizedPath(), false); in Quinoa

@ia3andy
Copy link
Collaborator

ia3andy commented Jan 23, 2025

The equivalent of RFC3986 in vert.x 4.5 was URIDecoder.decodeURIComponent(context.normalizedPath(), false);

@melloware
Copy link
Contributor Author

@ia3andy it looks like we are using some built in Util from Quarkus Core?

/**
     * Normalizes the path and the returned path starts with a slash and if {@code trailingSlash} is set to {@code true} then it
     * will also end in a slash.
     */
    private static String normalizePath(String path, boolean trailingSlash) {
        String normalizedPath = UriNormalizationUtil.toURI(path, trailingSlash).getPath();
        return normalizedPath.startsWith("/") ? normalizedPath : "/" + normalizedPath;
    }

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

No branches or pull requests

2 participants