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:
parent
3a3b752881
commit
9536f3825e
1 changed files with 2 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue