Updated on 2026-08-14
This commit is contained in:
parent
7868e94865
commit
5f3c2c337a
5 changed files with 32 additions and 15 deletions
|
|
@ -126,17 +126,4 @@ internal class DeepLinkFactory @Inject constructor(
|
|||
|
||||
return params
|
||||
}
|
||||
|
||||
/**
|
||||
* Check for malicious symbol in uri part
|
||||
*/
|
||||
private fun String.validate(): Boolean {
|
||||
val regex = DEEPLINK_VALIDATION_REGEX.toRegex()
|
||||
|
||||
return !regex.containsMatchIn(this)
|
||||
}
|
||||
|
||||
private companion object {
|
||||
const val DEEPLINK_VALIDATION_REGEX = "['\";<>()+\\\\]"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue