URL encode a log of exception
Change-Id: I50c08d58b4ce8555d88c68cae44c12600ae93221main
parent
0eaca7aa99
commit
c6bc1a93a3
|
@ -28,6 +28,7 @@ import android.util.Log;
|
||||||
|
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.io.PrintStream;
|
import java.io.PrintStream;
|
||||||
|
import java.net.URLEncoder;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
@ -557,7 +558,7 @@ public class LatinImeLogger implements SharedPreferences.OnSharedPreferenceChang
|
||||||
String exceptionString = new String(baos.toByteArray(), 0,
|
String exceptionString = new String(baos.toByteArray(), 0,
|
||||||
Math.min(EXCEPTION_MAX_LENGTH, baos.size()));
|
Math.min(EXCEPTION_MAX_LENGTH, baos.size()));
|
||||||
sLatinImeLogger.sendLogToDropBox(
|
sLatinImeLogger.sendLogToDropBox(
|
||||||
ID_EXCEPTION, new String[] {metaData, exceptionString});
|
ID_EXCEPTION, new String[] {metaData, URLEncoder.encode(exceptionString)});
|
||||||
if (sDBG) {
|
if (sDBG) {
|
||||||
Log.e(TAG, "Exception: " + new String(baos.toByteArray()));
|
Log.e(TAG, "Exception: " + new String(baos.toByteArray()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue