From c491e7f3869bd7c0188f873ea68171bb7c284af0 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Fri, 27 Apr 2007 11:17:20 +0000 Subject: [PATCH] Don't prepend http:// if link is of the form '#anchor' SVN revision: 1857 --- src/elogd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elogd.c b/src/elogd.c index c25b71cd..18c8cb52 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6000,7 +6000,7 @@ void rsputs_elcode(LOGBOOK * lbs, BOOL email_notify, const char *str) else sprintf(hattrib, "%s", attrib + 5); - } else if (strstr(attrib, "://") == 0) /* add http:// if missing */ + } else if (strstr(attrib, "://") == 0 && attrib[0] != '#') /* add http:// if missing */ sprintf(hattrib, "http://%s", attrib); else strlcpy(hattrib, attrib, sizeof(hattrib));