/[smeserver]/rpms/e-smith-email/sme8/e-smith-email-4.16.0-uriencode.patch2
ViewVC logotype

Annotation of /rpms/e-smith-email/sme8/e-smith-email-4.16.0-uriencode.patch2

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Fri Dec 28 03:27:41 2007 UTC (16 years, 11 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Import on branch sme8 of package e-smith-email-4.17.0-3.el5.sme.src.rpm

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    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed