![]() |
Bug Rapier displays samba passwords for custom backgrounds - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67) +---- Forum: Rapier (https://forum.kodi.tv/forumdisplay.php?fid=120) +---- Thread: Bug Rapier displays samba passwords for custom backgrounds (/showthread.php?tid=345335) |
Rapier displays samba passwords for custom backgrounds - snoopyd - 2019-07-12 Hi. I've set up custom backgrounds for e.g. power, system, etc. in Rapier (Kodi 18.3 Libreelec) to each serve multiple backgrounds from samba shares. But the settings page scrolls the path to the share and includes the samba username and password, e.g. it scrolls "smb://user:password@server/backgrounds/". It shouldn't display the password like that. RE: Rapier displays samba passwords for custom backgrounds - Gade - 2019-07-13 Hi snoopyd and welcome to the forums. Well, it's unfortunately not possible to hide the password and username info. The skin/Kodi can't tell if there's a password in the background property string. It only displays the info entered by the user. RE: Rapier displays samba passwords for custom backgrounds - snoopyd - 2019-07-14 (2019-07-13, 20:54)Gade Wrote: Hi snoopyd and welcome to the forums.Thanks. Can't it run a regex replacement on the string? s/(smb:\/\/)([^:]+):([^@]+)(@.*)/$1$2:**hidden**$4/ would replace 'smb://user:pw@server/path' with 'smb://user:**hidden**@server/path' RE: Rapier displays samba passwords for custom backgrounds - snoopyd - 2019-07-14 The smiley is ':<no space>(' RE: Rapier displays samba passwords for custom backgrounds - Karellen - 2019-07-14 @snoopyd Full Edit your post and select "Disable Smilies" underneath the Post button Ignore, just realised you are a new member. I'll do it for you. RE: Rapier displays samba passwords for custom backgrounds - Gade - 2019-07-23 It's a really good idea. But I have no idea how to (if possible at all) integrate regex into the string in the skinning engine. I tried entering Code: smb://user:password@server/backgrounds/ Code: $INFO[Skin.String(CustomAddonsBGPath,s/(smb:\/\/)([^:]+):([^@]+)(@.*)/$1$2:**hidden**$4/)] But it just displays the entire string with the regex first. Any suggestions? I'll look into this after my vacation. RE: Rapier displays samba passwords for custom backgrounds - Gade - 2019-07-28 As far as I know, it's unfortunately not possible to use regex directly inside skins. Sorry. If someone has some info, please let me know. |