#106605PathUtility::stripPathSitePrefix() cuts provided path to invalid path
Description
Currently, the PathUtility::stripPathSitePrefix() method cuts the length of the public path value from provided $path even if the path does not start with the public path, which can lead to an invalid and malformed path afterward.
Expected is for path only to be modified when having the public path as prefix (starts with it) and otherwise return the unmodified path.