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

Contents 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.2 - (show annotations) (download)
Sun Nov 23 04:58:11 2008 UTC (15 years, 11 months ago) by slords
Branch: MAIN
Changes since 1.1: +0 -0 lines
FILE REMOVED
Part of epel

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