[Commits] [wesnoth/wesnoth] 008787: campaignd: Catch utf8::invalid_utf8_exception with...

GitHub noreply at github.com
Mon Jan 19 19:45:59 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 00878708872c22179bf2703c53f74debb1185297
      https://github.com/wesnoth/wesnoth/commit/00878708872c22179bf2703c53f74debb1185297
  Author: Ignacio R. Morelle <shadowm at wesnoth.org>
  Date:   2015-01-19 (Mon, 19 Jan 2015)

  Changed paths:
    M src/campaign_server/campaign_server.cpp

  Log Message:
  -----------
  campaignd: Catch utf8::invalid_utf8_exception within handle_upload()

Otherwise add-ons with invalid UTF-8 sequences in the add-on name or the
fields matched against the blacklist (description, author, email, title)
crash campaignd since the exception is not handled anywhere.

We specifically want to handle this exception deep within
handle_upload() and with more specific knowledge of the circumstances
because otherwise we can't give the user an error message with enough
information to help them.





More information about the Commits mailing list