projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b001132
)
quote already-crypted passwords to prevent variable substitution
author
ivan
<ivan>
Thu, 18 Mar 2004 22:35:32 +0000
(22:35 +0000)
committer
ivan
<ivan>
Thu, 18 Mar 2004 22:35:32 +0000
(22:35 +0000)
FS/FS/part_export/shellcommands.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_export/shellcommands.pm
b/FS/FS/part_export/shellcommands.pm
index
1eb0d83
..
9fad36d
100644
(file)
--- a/
FS/FS/part_export/shellcommands.pm
+++ b/
FS/FS/part_export/shellcommands.pm
@@
-63,7
+63,7
@@
sub _export_command {
#eventually should check a "password-encoding" field
if ( length($svc_acct->_password) == 13
|| $svc_acct->_password =~ /^\$(1|2a?)\$/ ) {
#eventually should check a "password-encoding" field
if ( length($svc_acct->_password) == 13
|| $svc_acct->_password =~ /^\$(1|2a?)\$/ ) {
- $crypt_password = $svc_acct->_password;
+ $crypt_password =
shell_quote
$svc_acct->_password;
} else {
$crypt_password = crypt(
$svc_acct->_password,
} else {
$crypt_password = crypt(
$svc_acct->_password,
@@
-98,7
+98,7
@@
sub _export_replace {
#eventuall should check a "password-encoding" field
if ( length($new->_password) == 13
|| $new->_password =~ /^\$(1|2a?)\$/ ) {
#eventuall should check a "password-encoding" field
if ( length($new->_password) == 13
|| $new->_password =~ /^\$(1|2a?)\$/ ) {
- $new_crypt_password = $new->_password;
+ $new_crypt_password =
shell_quote
$new->_password;
} else {
$new_crypt_password =
crypt( $new->_password, $saltset[int(rand(64))].$saltset[int(rand(64))]
} else {
$new_crypt_password =
crypt( $new->_password, $saltset[int(rand(64))].$saltset[int(rand(64))]