mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-05 01:10:48 +00:00
Ensure that debuglog search queries are escaped.
Thank you to Aref Alotaibi <arefalotaibi.cs@gmail.com> for discovering and reporting this issue!
This commit is contained in:
committed by
Michelle Tang
parent
7bb0b513e8
commit
dde1d9b2c8
@@ -88,7 +88,8 @@ object DebugLogsViewer {
|
||||
|
||||
@JvmStatic
|
||||
fun onSearchInput(webview: WebView, query: String) {
|
||||
webview.evaluateJavascript("onSearchInput('$query')", null)
|
||||
val escaped = JSONObject.quote(query)
|
||||
webview.evaluateJavascript("onSearchInput($escaped)", null)
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
|
||||
Reference in New Issue
Block a user