mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Don't prepend http:// if link is of the form '#anchor'
SVN revision: 1857
This commit is contained in:
parent
2848a9a8be
commit
c491e7f386
@ -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));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user