Merge pull request #2511 from jestabro/load-file-name
T5763: fix imprecise check for remote file name