Permalink
Browse files

make bad utf8 input an error condition

  • Loading branch information...
1 parent 44f7b0a commit 531c609f0932ce31171f676c0ecbb1822299854a @notEthan notEthan committed with Apr 25, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 chrome/content/server.js
View
@@ -100,8 +100,7 @@ function onSocketAccepted(serv, transport) {
var stream = transport.openInputStream(0, 0, 0);
var instream = Cc['@mozilla.org/intl/converter-input-stream;1']
.createInstance(Ci.nsIConverterInputStream);
- instream.init(stream, 'UTF-8', 1024,
- Ci.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER);
+ instream.init(instream, 'UTF-8', 1024, 0);
} catch(e) {
log('E, MOZREPL : Error : ' + e);
}

0 comments on commit 531c609

Please sign in to comment.