Fix for null subjects
This commit is contained in:
parent
ca3b0bdf60
commit
0f1ffe142c
@ -260,6 +260,10 @@ struct msg_headers *read_message_headers(int msgconf, int msgarea, struct user_r
|
|||||||
}
|
}
|
||||||
JAM_DelSubPacket(jsp);
|
JAM_DelSubPacket(jsp);
|
||||||
|
|
||||||
|
if (jamm->subject == NULL) {
|
||||||
|
jamm->subject = strdup("(No Subject)");
|
||||||
|
}
|
||||||
|
|
||||||
if (jmh.Attribute & MSG_PRIVATE) {
|
if (jmh.Attribute & MSG_PRIVATE) {
|
||||||
if (!msg_is_to(user, jamm->to, jamm->daddress, conf.mail_conferences[msgconf]->nettype, conf.mail_conferences[msgconf]->realnames, msgconf) &&
|
if (!msg_is_to(user, jamm->to, jamm->daddress, conf.mail_conferences[msgconf]->nettype, conf.mail_conferences[msgconf]->realnames, msgconf) &&
|
||||||
!msg_is_from(user, jamm->from, jamm->oaddress, conf.mail_conferences[msgconf]->nettype, conf.mail_conferences[msgconf]->realnames, msgconf)) {
|
!msg_is_from(user, jamm->from, jamm->oaddress, conf.mail_conferences[msgconf]->nettype, conf.mail_conferences[msgconf]->realnames, msgconf)) {
|
||||||
|
@ -329,6 +329,10 @@ char *www_msgs_messageview(struct user_record *user, int conference, int area, i
|
|||||||
}
|
}
|
||||||
JAM_DelSubPacket(jsp);
|
JAM_DelSubPacket(jsp);
|
||||||
|
|
||||||
|
if (subject == NULL) {
|
||||||
|
subject = strdup("(No Subject)");
|
||||||
|
}
|
||||||
|
|
||||||
if (jmh.Attribute & MSG_PRIVATE) {
|
if (jmh.Attribute & MSG_PRIVATE) {
|
||||||
if (!msg_is_to(user, to, daddress, conf.mail_conferences[conference]->nettype, conf.mail_conferences[conference]->realnames, conference) &&
|
if (!msg_is_to(user, to, daddress, conf.mail_conferences[conference]->nettype, conf.mail_conferences[conference]->realnames, conference) &&
|
||||||
!msg_is_from(user, from, oaddress, conf.mail_conferences[conference]->nettype, conf.mail_conferences[conference]->realnames, conference)) {
|
!msg_is_from(user, from, oaddress, conf.mail_conferences[conference]->nettype, conf.mail_conferences[conference]->realnames, conference)) {
|
||||||
|
Reference in New Issue
Block a user