luci-mod-system: fix parsing SSH pubkeys with options
authorJo-Philipp Wich <jo@mein.io>
Wed, 23 Dec 2020 14:31:58 +0000 (15:31 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 23 Dec 2020 14:35:26 +0000 (15:35 +0100)
commit24550446caeaef9338a463a4b8c413ad3228ac49
treed5bc231a95c6851be20fafaa93c8d04c24e45276
parent1c67ae2302c872c490dd0373c6efd6016cf2e4d9
luci-mod-system: fix parsing SSH pubkeys with options

Also eliminate some duplicate code while we're at it.

Fixes: #4684
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit 846b89c5bf07100f9bf1e46bcac55acab5535e26)
modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js