mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[plugin] Wallabag: strip trailing slashes from server URL (#10715)
Fixes #9187.
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user