[1685] in BarnOwl Developers
[nelhage/barnowl] eea72a: owl_new_sv: Escape non-utf8 strings before errorin...
daemon@ATHENA.MIT.EDU (noreply@github.com)
Thu Oct 29 18:20:10 2009
Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
X-Original-To: nelhage@lunatique.mit.edu
Date: Sat, 12 Sep 2009 16:48:19 -0700
To: barnowl-dev@mit.edu
From: noreply@github.com
Branch: refs/heads/master
Home: http://github.com/nelhage/barnowl
Commit: eea72a13603338942d86c969f95425ae2fc1f9bd
http://github.com/nelhage/barnowl/commit/eea72a13603338942d86c969f95425ae2fc1f9bd
Author: Nelson Elhage <nelhage@mit.edu>
Date: 2009-09-12 (Sat, 12 Sep 2009)
Changed paths:
M perlconfig.c
M util.c
Log Message:
-----------
owl_new_sv: Escape non-utf8 strings before erroring with them.
Sending known non-utf8 text back into other code is just a bad
plan. In particular, multiline error messages become admin messages,
which results in their bodies getting sent to perl, which calls
owl_new_sv, and we would recurse infinitely.