Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make bad utf8 input an error condition

  • Loading branch information...
commit 531c609f0932ce31171f676c0ecbb1822299854a 1 parent 44f7b0a
@notEthan notEthan authored committed
Showing with 1 addition and 2 deletions.
  1. +1 −2  chrome/content/server.js
View
3  chrome/content/server.js
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.