Fix #3567: error when trying to send an error message to the client

Simple_wml requires double quotes to be duplicated like this.
This commit is contained in:
Jyrki Vesterinen 2018-09-22 12:27:30 +03:00
parent 3a3b752881
commit 9536f3825e

View file

@ -805,7 +805,8 @@ void server::handle_upload(const server::request& req)
LOG_CS << "Upload aborted - invalid file names in add-on data (" << badnames.size() << " entries).\n";
send_error(
"Add-on rejected: The add-on contains files or directories with illegal names. "
"File or directory names may not contain whitespace, control characters or any of the following characters: '\" * / : < > ? \\ | ~'. "
// Note: the double double quote will be flattened to a single double quote.
"File or directory names may not contain whitespace, control characters or any of the following characters: '\"\" * / : < > ? \\ | ~'. "
"It also may not contain '..' end with '.' or be longer than 255 characters.",
filelist, req.sock);
} else if(!check_case_insensitive_duplicates(data, &badnames)) {