mirror of
https://github.com/vyvir/althea.git
synced 2026-06-05 14:59:30 -05:00
wrap password in quotes
a password containing certain characters causes sh to throw an error. this includes quotes themselves and thus further sanitization should be done
This commit is contained in:
@@ -590,7 +590,7 @@ class Login(Gtk.Window):#
|
||||
#f.close()
|
||||
if os.path.isdir(f'{ os.environ["HOME"] }/.adi'):
|
||||
rmtree(f'{ os.environ["HOME"] }/.adi')
|
||||
InsAltStoreCMD = f"""{export_anisette} ; {(AltServer)} -u {UDID} -a {apple_id} -p {password} {PATH} > {("$HOME/.local/share/althea/log.txt")}"""
|
||||
InsAltStoreCMD = f"""{export_anisette} ; {(AltServer)} -u {UDID} -a {apple_id} -p \"{password}\" {PATH} > {("$HOME/.local/share/althea/log.txt")}"""
|
||||
InsAltStore = subprocess.Popen(
|
||||
InsAltStoreCMD,
|
||||
stdin=subprocess.PIPE,
|
||||
|
||||
Reference in New Issue
Block a user