fix new email link

This commit is contained in:
Andrew Pamment 2018-01-21 15:19:04 +10:00
parent 6ac2e6f125
commit aac4aaad00

View File

@ -566,7 +566,7 @@ char *www_email_summary(struct user_record *user) {
strcat(page, buffer);
len += strlen(buffer);
sprintf(buffer, "<div class=\"button\"><a href=\"/email/new\">New Email</a></div>\n");
sprintf(buffer, "<div class=\"button\"><a href=\"%semail/new\">New Email</a></div>\n", config.www_url);
if (len + strlen(buffer) > max_len - 1) {
max_len += 4096;
page = (char *)realloc(page, max_len);