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

Fixes #9187.
This commit is contained in:
clach04
2023-07-27 00:29:29 -07:00
committed by GitHub
parent 4fa278ff0b
commit 500eadf895

View File

@@ -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]