From 3e549b26c6031f0c2bd0de4da086a1d0b2ce6a5f Mon Sep 17 00:00:00 2001 From: Mike Arvela Date: Thu, 12 Nov 2026 10:29:37 +0200 Subject: [PATCH] fix: only web links open from a PR's body Co-Authored-By: Claude Opus 5.5 --- app/mods/github/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/mods/github/main.js b/app/mods/github/main.js index 6ea557f..361e0f1 100644 --- a/app/mods/github/main.js +++ b/app/mods/github/main.js @@ -512,8 +512,10 @@ export default class GitHub extends View { closeOverlay(props().overlay); } + // Web links only: a PR body is anyone's markdown, and file: or app links would reach the OS. open(url, cx) { if (!url) return; + if (!/^https?:\/\//i.test(url)) return this.say(`Not opening ${url}: only web links open.`, cx, true); if (this.demo) return this.say(`Demo: would open ${url}`, cx); cx.open_url(url); }