/[smecontribs]/rpms/smeserver-openvpn-s2s/contribs10/smeserver-openvpn-s2s-0.2-fix_daemon_id_validation.patch
ViewVC logotype

Annotation of /rpms/smeserver-openvpn-s2s/contribs10/smeserver-openvpn-s2s-0.2-fix_daemon_id_validation.patch

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


Revision 1.1 - (hide annotations) (download)
Thu Feb 4 16:21:23 2021 UTC (3 years, 9 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-openvpn-s2s-0_2-13_el7_sme, smeserver-openvpn-s2s-0_2-16_el7_sme, smeserver-openvpn-s2s-0_2-10_el7_sme, smeserver-openvpn-s2s-0_2-17_el7_sme, smeserver-openvpn-s2s-0_2-11_el7_sme, smeserver-openvpn-s2s-0_2-14_el7_sme, smeserver-openvpn-s2s-0_2-15_el7_sme, smeserver-openvpn-s2s-0_2-18_el7_sme, smeserver-openvpn-s2s-0_2-19_el7_sme, smeserver-openvpn-s2s-0_2-20_el7_sme, smeserver-openvpn-s2s-0_2-9_el7_sme, smeserver-openvpn-s2s-0_2-12_el7_sme, HEAD
Initial import

1 brianr 1.1 diff -Nur smeserver-openvpn-s2s-0.2/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/openvpns2s.pm smeserver-openvpn-s2s-0.2_bz10446/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/openvpns2s.pm
2     --- smeserver-openvpn-s2s-0.2/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/openvpns2s.pm 2013-11-11 18:33:06.000000000 +0100
3     +++ smeserver-openvpn-s2s-0.2_bz10446/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/openvpns2s.pm 2017-10-25 15:22:01.895920386 +0200
4     @@ -67,7 +67,7 @@
5     my $q = $fm->{cgi};
6     my $conf = $q->param('conf_name');
7    
8     - if ($q->param('action' ne 'modify')){
9     + if ($q->param('action') ne 'modify'){
10     if ($ovpn_db->get($conf)){
11     return $fm->error('CONF_CONFLICT','FIRST_PAGE');
12     }
13     @@ -522,7 +522,7 @@
14     sub validate_conf_name{
15     my ($fm, $conf_name) = @_;
16    
17     - unless ($conf_name =~ /^([a-zA-Z0-9][\_\.\-a-zA-Z0-9]*)$/){
18     + unless ($conf_name =~ /^([a-zA-Z0-9][\_\.\-a-zA-Z0-9]{0,9})$/){
19     return $fm->localise('INVALID_CHARS',{string => $conf_name});
20     }
21     return "OK";

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