From d6402fd89ee689623f77c896003ea0ab2b1bf07c Mon Sep 17 00:00:00 2001 From: root Date: Tue, 3 Jan 2006 21:36:15 +0000 Subject: [PATCH] *** empty log message *** --- Changes | 3 ++- src/perl/selection | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Changes b/Changes index ca866c94..fd20a775 100644 --- a/Changes +++ b/Changes @@ -11,7 +11,8 @@ WISH: make builtin character glyphs optional - SECURITY FIX: on systems using openpty (most BSDs, not GNU/Linux), permissions were not correctly updated on the tty device and - were left as world-readable and world-writable. + were left as world-readable and world-writable (likely in original + rxvt, too). - meta8 support was forcefully enabled in most configurations. restored configurability of this (useless) feature (reported by Mikachu) diff --git a/src/perl/selection b/src/perl/selection index 4395e443..b839c589 100644 --- a/src/perl/selection +++ b/src/perl/selection @@ -10,8 +10,11 @@ sub on_keyboard_command { } my @patterns = ( - # urls - qr{ ([a-z0-9.+\-]+://[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),]+) }x, + # urls, just a heuristic + qr{( + (?:https?|ftp|news|mailto|file)://[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),]+ + [^.] # do not include a trailing dot, its wrong too often + )}x, # shell-like argument quoting qr{\G\s*( -- 2.34.1