/[smecontribs]/rpms/smeserver-shared-folders/contribs7/smeserver-shared-folders-0.1-share_name_starting_with_a_num.patch
ViewVC logotype

Contents of /rpms/smeserver-shared-folders/contribs7/smeserver-shared-folders-0.1-share_name_starting_with_a_num.patch

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


Revision 1.1 - (show annotations) (download)
Wed Oct 17 14:44:23 2012 UTC (12 years, 1 month ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-shared-folders-0_1-79_el4_sme, smeserver-shared-folders-0_1-77_el4_sme, smeserver-shared-folders-0_1-78_el4_sme, HEAD
* Wed Oct 17 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-77.sme
- Allow share names starting with numbers (there's no reason to deny it)

1 diff -Nur smeserver-shared-folders-0.1/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm smeserver-shared-folders-0.1_mod/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm
2 --- smeserver-shared-folders-0.1/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm 2012-10-17 16:40:58.878968421 +0200
3 +++ smeserver-shared-folders-0.1_mod/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm 2012-10-17 16:41:53.613916613 +0200
4 @@ -778,7 +778,7 @@
5 sub validate_name {
6 my ($self, $acctName) = @_;
7
8 - unless ($acctName =~ /^([a-z][\_\.\-a-z0-9]*)$/){
9 + unless ($acctName =~ /^([a-z0-9][\_\.\-a-z0-9]*)$/){
10 return $self->localise('ACCT_NAME_HAS_INVALID_CHARS',
11 {acctName => $acctName});
12 }

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