Hi,
See my reply above, it's a bug on your code.
You're concatenating the string "/master/" which already has a trailing slash, with the file parameter that starts with a slash, so you end up with double slashes, which causes the issue.
If you know that the file parameter will always start with a slash, then simple removing the trailing slash from the concatenation as I exemplified should work.
If not, you'll have to run some checks and see if the file parameter starts or not with a slash and act accordingly.
Cheers
On Sunday, October 20, 2024 at 4:16:29 PM UTC+1 Jean Fabre wrote