1 |
slords |
1.1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-email-4.16.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/pseudonyms.pm mezzanine_patched_e-smith-email-4.16.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/pseudonyms.pm |
2 |
|
|
--- e-smith-email-4.16.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/pseudonyms.pm 2007-06-11 12:26:32.000000000 -0600 |
3 |
|
|
+++ mezzanine_patched_e-smith-email-4.16.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/pseudonyms.pm 2007-06-11 12:26:24.000000000 -0600 |
4 |
|
|
@@ -200,7 +200,7 @@ |
5 |
|
|
my $q = $fm->{'cgi'}; |
6 |
|
|
my $msg = "OK"; |
7 |
|
|
|
8 |
|
|
- my $pseudonym = $q->param ('pseudonym'); |
9 |
|
|
+ my $pseudonym = uri_unescape($q->param ('pseudonym')); |
10 |
|
|
my $account = $q->param ('account'); |
11 |
|
|
|
12 |
|
|
$accounts->get($pseudonym)->set_prop('Account', $account) |
13 |
|
|
@@ -231,7 +231,7 @@ |
14 |
|
|
my $q = $fm->{'cgi'}; |
15 |
|
|
my $msg = "OK"; |
16 |
|
|
|
17 |
|
|
- my $pseudonym = $q->param('pseudonym'); |
18 |
|
|
+ my $pseudonym = uri_unescape($q->param('pseudonym')); |
19 |
|
|
|
20 |
|
|
unless($fm->validate_is_pseudonym($pseudonym) eq 'OK') { |
21 |
|
|
$fm->{cgi}->param( -name => 'wherenext', -value => 'InvalidPseudonym' ); |
22 |
|
|
@@ -487,7 +487,9 @@ |
23 |
|
|
sub validate_is_pseudonym { |
24 |
|
|
my $fm = shift; |
25 |
|
|
my $pseudonym = shift; |
26 |
|
|
- my $type = $accounts->get($pseudonym)->prop('type'); |
27 |
|
|
+ $pseudonym = $accounts->get($pseudonym); |
28 |
|
|
+ return('NOT_A_PSEUDONYM') unless $pseudonym; |
29 |
|
|
+ my $type = $pseudonym->prop('type'); |
30 |
|
|
|
31 |
|
|
unless (defined $type && ($type eq 'pseudonym') ) { |
32 |
|
|
|