/[smecontribs]/rpms/smeserver-userpanels/contribs8/smeserver-userpanels-1.0-check_email_address.patch
ViewVC logotype

Annotation of /rpms/smeserver-userpanels/contribs8/smeserver-userpanels-1.0-check_email_address.patch

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


Revision 1.1 - (hide annotations) (download)
Thu Feb 7 02:25:02 2013 UTC (11 years, 9 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-userpanels-1_0-34_el5_sme, smeserver-userpanels-1_0-35_el5_sme, smeserver-userpanels-1_0-36_el5_sme, smeserver-userpanels-1_0-33_el5_sme, HEAD
Initial import

1 unnilennium 1.1 diff -Nur smeserver-userpanels-1.0/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/userpanel-forwarding smeserver-userpanels-1.0_mod/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/userpanel-forwarding
2     --- smeserver-userpanels-1.0/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/userpanel-forwarding 2012-09-07 17:42:33.855470957 +0200
3     +++ smeserver-userpanels-1.0_mod/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/userpanel-forwarding 2012-09-07 17:53:57.295054399 +0200
4     @@ -34,6 +34,10 @@
5     <trans>Unacceptable characters, or Domain name missing.</trans>
6     </entry>
7     <entry>
8     + <base>VALID_EMAIL_NEEDED</base>
9     + <trans>A valid email address is needed</trans>
10     + </entry>
11     + <entry>
12     <base>EMAIL_DELIVERY</base>
13     <trans>Email Delivery</trans>
14     </entry>
15     diff -Nur smeserver-userpanels-1.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/userpanelForwarding.pm smeserver-userpanels-1.0_mod/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/userpanelForwarding.pm
16     --- smeserver-userpanels-1.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/userpanelForwarding.pm 2006-03-26 00:00:58.000000000 +0100
17     +++ smeserver-userpanels-1.0_mod/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/userpanelForwarding.pm 2012-09-07 17:54:08.479507450 +0200
18     @@ -34,16 +34,22 @@
19     my $fm = shift;
20     my $q = $fm->{cgi};
21    
22     + my $Forward = $q->param('EmailForward');
23     my $ForwardAddress = $q->param('ForwardAddress') || '';
24     $ForwardAddress =~ s/^\s+|\s+$//g;
25    
26     my $response = $fm->email_simple($ForwardAddress);
27     - if (($response eq 'OK') or ($ForwardAddress eq ''))
28     - {
29     + if ($response eq 'OK')
30     + {
31     return 'OK';
32     }
33     + elsif ($ForwardAddress eq '')
34     + {
35     + return 'OK' if ($Forward eq 'local');
36     + return 'VALID_EMAIL_NEEDED';
37     + }
38     else
39     - {
40     + {
41     return 'UNACCEPTABLE_CHARS';
42     }
43     }
44     @@ -65,4 +71,4 @@
45     $fm->success('SUCCESS');
46     }
47    
48     -1;
49     \ Pas de fin de ligne à la fin du fichier.
50     +1;

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