mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
Make suggestion to replace example.com more explicit.
This commit is contained in:
@@ -3,6 +3,7 @@ const app = require("express")();
|
||||
function isLocalUrl(path) {
|
||||
try {
|
||||
return (
|
||||
// TODO: consider substituting your own domain for example.com
|
||||
new URL(path, "https://example.com").origin === "https://example.com"
|
||||
);
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user