From 919cc62d05517c3222f92e64532d0c157c3306cb Mon Sep 17 00:00:00 2001 From: marcus Date: Sat, 27 Apr 2002 17:32:31 +0000 Subject: Allow Galeon to properly act as a viewer for GNOME help URLs. Bump PORTREVISION. Prompted by: User Witr Reviewed by: sobomax Approved by: sobomax --- www/galeon2/files/patch-src_main.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 www/galeon2/files/patch-src_main.c (limited to 'www/galeon2/files') diff --git a/www/galeon2/files/patch-src_main.c b/www/galeon2/files/patch-src_main.c new file mode 100644 index 000000000000..584e80953a4e --- /dev/null +++ b/www/galeon2/files/patch-src_main.c @@ -0,0 +1,16 @@ +--- src/main.c.orig Fri Apr 26 14:29:08 2002 ++++ src/main.c Fri Apr 26 14:52:43 2002 +@@ -394,7 +394,12 @@ + for (i = 0; i < n; i++) + { + /* try to expand as files */ +- if (realpath (args[i], buffer) != NULL) ++ if (!strnstr(args[i], "ghelp:", strlen("ghelp:")) && ++ !strnstr(args[i], "toc:", strlen("toc:")) && ++ !strnstr(args[i], "info:", strlen("info:")) && ++ !strnstr(args[i], "main:", strlen("man:")) && ++ !strnstr(args[i], "gnome-help:", strlen("gnome-help")) && ++ realpath (args[i], buffer) != NULL) + { + (*urls)[i] = g_strconcat ("file://", buffer, NULL); + } -- cgit