Description

The CanLaunchURL() function seems like it would check the provided URL to make sure it is valid. The comment for the function in GenericPlatformProcess.h appears to imply that this is what the function does: "Checks if the platform can launch a uniform resource locator (i.e. [Link Removed])."

Currently the function will return true regardless of whether the URL is valid, or even if random text is passed in (not a URL). The implementation appears to be the same for Mac and Linux as well.

Steps to Reproduce
  1. Open the file WindowsPlatformProcess.cpp
    • Engine\Source\Runtime\Core\Private\Windows\WindowsPlatformProcess.cpp
  2. Locate the function CanLaunchURL()
    • Line 293 in 4.18.2 (CL 3794801)

RESULT:
The function simply checks to make sure the value that was passed in is not a nullptr.

EXPECTED:
The function verifies that a valid URL was provided.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-54069 in the post.

0
Login to Vote

Won't Fix
ComponentUE - Foundation - Core
Affects Versions4.17.24.18.24.20
CreatedJan 15, 2018
ResolvedAug 18, 2021
UpdatedAug 18, 2021
View Jira Issue