MDL-50688 lib: fix local url validation bug
MDL-50688 lib: fix local url validation bug

Change-Id: I350bb8c9ace5cc0403f083f728c100097be7aa7e
Reviewed-on: https://review.totaralms.com/8101
Tested-by: Jenkins Automation <d95b56ce41a2e1ac4cecdd398defd7414407cc08@totaralms.com>
Reviewed-by: Sam Hemelryk <36375cc14c4af27afd2f5457fa12f157b7eee7de@totaralms.com>
Reviewed-by: Alastair Munro <cf73601db26c7714b5f295b3a754f0ad8c70bcfd@totaralms.com>

dilawar/moodle