[sysadmin-bin] More chars to sanitize



commit 1286618e24b59c483a82f786d3d7a1b033fe682b
Author: Andrea Veri <av gnome org>
Date:   Fri Oct 3 15:08:43 2014 +0200

    More chars to sanitize

 reset-my-password.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/reset-my-password.py b/reset-my-password.py
index 78342f5..bf83239 100755
--- a/reset-my-password.py
+++ b/reset-my-password.py
@@ -21,7 +21,8 @@ for line in lines:
                 dirty_password = line.split()
                 ldap_password = str(dirty_password)
 
-                sanitize_file=["ldap_password", "\"", ":"]
+                sanitize_file=["ldap_password", "\"", ":", "[", "]", "'"]
+from random import choice, randrange
                 for i in range(len(sanitize_file)):
                         ldap_password = ldap_password.replace(sanitize_file[i],"")
 file.close()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]