mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-02-20 01:21:20 +01:00
Fix chpass-wrapper.py helper compatibility with Python 3 (#8324)
This commit is contained in:
@@ -62,6 +62,7 @@
|
||||
- Fix so css files in plugins/jqueryui/themes will be minified too (#8337)
|
||||
- Fix handling of unicode/special characters in custom From input (#8357)
|
||||
- Fix some PHP8 compatibility issues (#8363)
|
||||
- Fix chpass-wrapper.py helper compatibility with Python 3 (#8324)
|
||||
|
||||
## Release 1.5.1
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ if username in BLACKLIST:
|
||||
sys.exit('Changing password for user %s is forbidden (user blacklisted)' %
|
||||
username)
|
||||
|
||||
handle = subprocess.Popen('/usr/sbin/chpasswd', stdin = subprocess.PIPE)
|
||||
handle = subprocess.Popen('/usr/sbin/chpasswd', stdin = subprocess.PIPE, universal_newlines = True)
|
||||
handle.communicate('%s:%s' % (username, password))
|
||||
|
||||
sys.exit(handle.returncode)
|
||||
|
||||
Reference in New Issue
Block a user