Empty title aborts blog editor
This commit is contained in:
parent
172034debc
commit
fbd3dc7494
@ -195,6 +195,11 @@ void blog_write() {
|
|||||||
s_readstring(buffer, 64);
|
s_readstring(buffer, 64);
|
||||||
s_printf("\r\n");
|
s_printf("\r\n");
|
||||||
|
|
||||||
|
if (strlen(buffer) == 0) {
|
||||||
|
s_printf(get_string(39));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
blog_subject = strdup(buffer);
|
blog_subject = strdup(buffer);
|
||||||
|
|
||||||
blog_entry = external_editor(gUser, "No-One", "No-One", NULL, 0, "No-One", "Blog Editor", 0, 1);
|
blog_entry = external_editor(gUser, "No-One", "No-One", NULL, 0, "No-One", "Blog Editor", 0, 1);
|
||||||
|
Reference in New Issue
Block a user