Skip to content

Commit

Permalink
Merge pull request #755 from ikedas/issue-693-add1 by ikedas
Browse files Browse the repository at this point in the history
Additional fix to #693
  • Loading branch information
ikedas authored Sep 22, 2019
2 parents cd5d828 + 98da5bf commit 317b2f5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
4 changes: 4 additions & 0 deletions src/lib/Sympa/DataSource.pm
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ sub new {
my @defkeys = sort keys %{$defopts || {}};
my @defvals = @{$defopts || {}}{@defkeys} if @defkeys;

#FIXME: consider boundaries of Unicode characters (or grapheme clusters)
$options{name} = substr $options{name}, 0, 50
if $options{name} and 50 < length $options{name};

return $type->_new(
%options,
_role => $role,
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Sympa/DataSource/RemoteFile.pm
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ sub _open {
if $key_passwd;
$ua->ssl_opts(
SSL_verify_mode => (
{none => 0, optional => 1, required => 3}->$self->{ca_verify}
|| 0
{none => 0, optional => 1, required => 3}
->{$self->{ca_verify}} || 0
)
) if defined $self->{ca_verify};
$ua->ssl_opts(SSL_ca_file => $ca_file) if $ca_file;
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Sympa/DatabaseDescription.pm
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ my %full_db_struct = (
'order' => 12.7,
},
'inclusion_label_subscriber' => {
'struct' => 'varchar(15)',
'struct' => 'varchar(50)',
'doc' => 'name of data source',
'order' => 12.8,
},
Expand Down Expand Up @@ -951,7 +951,7 @@ my %full_db_struct = (
'order' => 7.7,
},
'inclusion_label_admin' => {
'struct' => 'varchar(15)',
'struct' => 'varchar(50)',
'doc' => 'name of data source',
'order' => 7.8,
},
Expand Down
18 changes: 9 additions & 9 deletions src/lib/Sympa/ListDef.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ our %pinfo = (
'order' => 1,
'gettext_id' => "short name for this source",
'format' => '.+',
'length' => 15
'length' => 50,
},
'url' => {
'order' => 2,
Expand Down Expand Up @@ -1203,7 +1203,7 @@ our %pinfo = (
'order' => 1,
'gettext_id' => "short name for this source",
'format' => '.+',
'length' => 15
'length' => 50,
},
'listname' => {
'order' => 2,
Expand Down Expand Up @@ -1237,7 +1237,7 @@ our %pinfo = (
'order' => 1,
'gettext_id' => "short name for this source",
'format' => '.+',
'length' => 15
'length' => 50,
},
'url' => {
'order' => 2,
Expand Down Expand Up @@ -1374,7 +1374,7 @@ our %pinfo = (
'order' => 1,
'gettext_id' => "short name for this source",
'format' => '.+',
'length' => 15
'length' => 50,
},
'host' => {
'order' => 2,
Expand Down Expand Up @@ -1516,7 +1516,7 @@ our %pinfo = (
'order' => 1,
'gettext_id' => "short name for this source",
'format' => '.+',
'length' => 15
'length' => 50,
},
'host' => {
'order' => 2,
Expand Down Expand Up @@ -1704,7 +1704,7 @@ our %pinfo = (
'order' => 1,
'gettext_id' => "short name for this source",
'format' => '.+',
'length' => 15
'length' => 50,
},
'db_type' => {
'order' => 1.5,
Expand Down Expand Up @@ -1812,7 +1812,7 @@ our %pinfo = (
'order' => 1,
'gettext_id' => "short name for this source",
'format' => '.+',
'length' => 15
'length' => 50,
},
'host' => {
'order' => 2,
Expand Down Expand Up @@ -1957,7 +1957,7 @@ our %pinfo = (
'name' => {
'format' => '.+',
'gettext_id' => "short name for this source",
'length' => 15,
'length' => 50,
'order' => 1,
},
'host' => {
Expand Down Expand Up @@ -2151,7 +2151,7 @@ our %pinfo = (
'order' => 1,
'gettext_id' => "short name for this source",
'format' => '.+',
'length' => 15
'length' => 50,
},
'db_type' => {
'order' => 1.5,
Expand Down

0 comments on commit 317b2f5

Please sign in to comment.