Package de.hybris.platform.util
Class SecurityUtils
java.lang.Object
de.hybris.platform.util.SecurityUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisPathEscapingDirectory(Path path) static booleanChecks if path is not traversing to parent directory, eg.static booleanisPathNotEscapingDirectory(Path path, String platformHome)
-
Method Details
-
isPathNotEscapingDirectory
Checks if path is not traversing to parent directory, eg. using ../../foo or by being absolute path.- Parameters:
path- relative or absolute path- Returns:
- false if path is traversing to parent directory
-
isPathEscapingDirectory
-
isPathNotEscapingDirectory
-