From 61c8d2d26641c648e789e89821a92771c6b83442 Mon Sep 17 00:00:00 2001 From: Garret Kelly Date: Mon, 10 Aug 2020 22:19:51 -0400 Subject: [PATCH] Put channel options into URL fragments Put the channel options into the URL fragment instead of the URL path. This ensures that the channel options (including the channel key) is never accidentally leaked to a remote party. This URL format appears to be backwards compatible, URLs generated in the new form are properly parsed by the old version. URLs generated by the old version are _not_ parsed by the new version. Closes #126. --- app/src/main/java/com/geeksville/mesh/model/Channel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/geeksville/mesh/model/Channel.kt b/app/src/main/java/com/geeksville/mesh/model/Channel.kt index c748073a9..070818260 100644 --- a/app/src/main/java/com/geeksville/mesh/model/Channel.kt +++ b/app/src/main/java/com/geeksville/mesh/model/Channel.kt @@ -32,7 +32,7 @@ data class Channel( .setModemConfig(MeshProtos.ChannelSettings.ModemConfig.Bw125Cr45Sf128).build() ) - const val prefix = "https://www.meshtastic.org/c/" + const val prefix = "https://www.meshtastic.org/c/#" private const val base64Flags = Base64.URL_SAFE + Base64.NO_WRAP