Strip entry/folder names after user input to ensure compatibility with sshync

Former-commit-id: f07a48fc2bde0d651199d62cb0f35a1c18f51f8e [formerly 9d8eca3a2b]
Former-commit-id: 438ac436902369f1af4dc8dae5abc38d7e6dabaf
This commit is contained in:
2022-12-07 20:27:39 -05:00
parent 9776961f2a
commit b53370a3e2
+1 -1
View File
@@ -93,7 +93,7 @@ def entry_name_fetch(_entry_name_location): # fetches and returns entry name fr
if _entry_name.startswith('/'):
return _entry_name.replace('/', '', 1)
else:
return _entry_name
return _entry_name.strip()
def string_gen(_complexity, _length): # generates and returns a random string based on input