Skip to content

Commit

Permalink
(Scala) Allow 'android-app' URL scheme (closes #90)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdecaire authored and dilyand committed Oct 31, 2019
1 parent 7961782 commit 9d95f1d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ class Parser private[refererparser] (referers: Map[String, RefererLookup]) {
val path = refererUri.getPath
val query = Option(refererUri.getRawQuery)

val validUri = (scheme == "http" || scheme == "https") && host != null && path != null
val validSchemes = Seq("http", "https", "android-app")

val validUri = validSchemes.contains(scheme) && host != null && path != null

if (validUri) {
if (// Check for internal domains
Expand Down

0 comments on commit 9d95f1d

Please sign in to comment.