/[smecontribs]/rpms/smeserver-subversion/contribs7/smeserver-subversion-1.4-ValidateDescription.patch
ViewVC logotype

Annotation of /rpms/smeserver-subversion/contribs7/smeserver-subversion-1.4-ValidateDescription.patch

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


Revision 1.3 - (hide annotations) (download)
Tue Nov 25 16:20:30 2008 UTC (15 years, 11 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-subversion-1_4-38_el4_sme, smeserver-subversion-1_4-51_el4_sme, smeserver-subversion-1_4-40_el4_sme, smeserver-subversion-1_4-49_el4_sme, smeserver-subversion-1_4-37_el4_sme, smeserver-subversion-1_4-36_el4_sme, smeserver-subversion-1_4-45_el4_sme, smeserver-subversion-1_4-50_el4_sme, smeserver-subversion-1_4-39_el4_sme, smeserver-subversion-1_4-48_el4_sme, smeserver-subversion-1_4-46_el4_sme, HEAD
Changes since 1.2: +0 -0 lines
Restore

1 snetram 1.1 --- smeserver-subversion-1.4/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/subversion.pm.ValidateDescription 2008-08-10 17:34:40.000000000 +0200
2     +++ smeserver-subversion-1.4/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/subversion.pm 2008-08-10 17:43:49.000000000 +0200
3     @@ -975,13 +975,13 @@
4    
5     sub validate_description {
6    
7     -# my ($self, $description) = @_;
8     + my ($self, $description) = @_;
9    
10     -# unless ($description =~ /^([a-z]\X+[\_\.\-a-z0-9]*)$/)
11     -# {
12     -# return $self->localise('DESCRIPTION_HAS_INVALID_CHARS',
13     -# {repoDescription => $description});
14     -# }
15     + unless ($description =~ /^([\w\s\_\.\-]*)$/)
16     + {
17     + return $self->localise('DESCRIPTION_HAS_INVALID_CHARS',
18     + {repoDescription => $description});
19     + }
20     return "OK";
21    
22     }

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