[plugin] Wallabag: strip trailing slashes from server URL (#10715)

Fixes #9187.
reviewable/pr10758/r1
clach04 10 months ago committed by GitHub
parent 4fa278ff0b
commit 500eadf895
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1054,7 +1054,7 @@ Restart KOReader after editing the config file.]]), BD.dirpath(DataStorage:getSe
text = _("Apply"),
callback = function()
local myfields = self.settings_dialog:getFields()
self.server_url = myfields[1]
self.server_url = myfields[1]:gsub("/*$", "") -- remove all trailing "/" slashes
self.client_id = myfields[2]
self.client_secret = myfields[3]
self.username = myfields[4]

Loading…
Cancel
Save