Fix for missing message
This commit is contained in:
parent
4b19ee0a54
commit
4cea0d3968
6
www.c
6
www.c
@ -686,15 +686,19 @@ int www_handler(void * cls, struct MHD_Connection * connection, const char * url
|
|||||||
page = www_msgs_messagelist(con_inf->user, conference, area, skip);
|
page = www_msgs_messagelist(con_inf->user, conference, area, skip);
|
||||||
} else if (conference != -1 && area != -1 && msg != -1) {
|
} else if (conference != -1 && area != -1 && msg != -1) {
|
||||||
page = www_msgs_messageview(con_inf->user, conference, area, msg);
|
page = www_msgs_messageview(con_inf->user, conference, area, msg);
|
||||||
//page = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (page == NULL) {
|
if (page == NULL) {
|
||||||
|
if (www_403(header, footer, connection) != 0) {
|
||||||
free(header);
|
free(header);
|
||||||
free(footer);
|
free(footer);
|
||||||
return MHD_NO;
|
return MHD_NO;
|
||||||
}
|
}
|
||||||
|
free(header);
|
||||||
|
free(footer);
|
||||||
|
return MHD_YES;
|
||||||
|
}
|
||||||
whole_page = (char *)malloc(strlen(header) + strlen(page) + strlen(footer) + 1);
|
whole_page = (char *)malloc(strlen(header) + strlen(page) + strlen(footer) + 1);
|
||||||
|
|
||||||
sprintf(whole_page, "%s%s%s", header, page, footer);
|
sprintf(whole_page, "%s%s%s", header, page, footer);
|
||||||
|
Reference in New Issue
Block a user