Fix sanitize URL bug on layer upload Upstream-commit: 9703c3a90e673ced82b640f87674331b0a253208 Component: engine