mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-05 08:37:14 -04:00
Strip entry/folder names after user input to ensure compatibility with sshync
This commit is contained in:
+1
-1
@@ -93,7 +93,7 @@ def entry_name_fetch(_entry_name_location): # fetches and returns entry name fr
|
|||||||
if _entry_name.startswith('/'):
|
if _entry_name.startswith('/'):
|
||||||
return _entry_name.replace('/', '', 1)
|
return _entry_name.replace('/', '', 1)
|
||||||
else:
|
else:
|
||||||
return _entry_name
|
return _entry_name.strip()
|
||||||
|
|
||||||
|
|
||||||
def string_gen(_complexity, _length): # generates and returns a random string based on input
|
def string_gen(_complexity, _length): # generates and returns a random string based on input
|
||||||
|
|||||||
Reference in New Issue
Block a user