Skip to content

Commit

Permalink
canonicalPath Refactor
Browse files Browse the repository at this point in the history
restored removed method as deprecated
  • Loading branch information
gregw committed Jun 29, 2021
1 parent 2e75feb commit e633ed0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions jetty-util/src/main/java/org/eclipse/jetty/util/URIUtil.java
Expand Up @@ -889,6 +889,17 @@ else if (slash)
return canonical.toString();
}

/**
* @param path the encoded URI from the path onwards, which may contain query strings and/or fragments
* @return the canonical path, or null if path traversal above root.
* @deprecated Use {@link #canonicalURI(String)}
*/
@Deprecated
public static String canonicalEncodedPath(String path)
{
return canonicalURI(path);
}

/**
* Convert a decoded URI path to a canonical form.
* <p>
Expand Down

0 comments on commit e633ed0

Please sign in to comment.