[sysadmin-bin] More chars to sanitize
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] More chars to sanitize
- Date: Fri, 3 Oct 2014 13:08:53 +0000 (UTC)
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]