Skip to content

Commit

Permalink
Fix #3567: error when trying to send an error message to the client
Browse files Browse the repository at this point in the history
Simple_wml requires double quotes to be duplicated like this.

(cherry-picked from commit 9536f38)
  • Loading branch information
jyrkive committed Oct 7, 2018
1 parent e766cdc commit f55e11e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/campaign_server/campaign_server.cpp
Expand Up @@ -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)) {
Expand Down

0 comments on commit f55e11e

Please sign in to comment.