mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 12:25:10 +00:00
Fix #3567: error when trying to send an error message to the client
Simple_wml requires double quotes to be duplicated like this. (cherry-picked from commit 9536f3825e867d30b7adc71d6b53bd2230c31cab)
This commit is contained in:
parent
e766cdc7cc
commit
f55e11e733
@ -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…
x
Reference in New Issue
Block a user