Skip to content

Commit a56aa06

Browse files
committed
Addition to sympa-community#1053: Clip subject safely
1 parent 2b924bb commit a56aa06

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lib/Sympa/List.pm

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
# Copyright (c) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
99
# 2006, 2007, 2008, 2009, 2010, 2011 Comite Reseau des Universites
1010
# Copyright (c) 2011, 2012, 2013, 2014, 2015, 2016, 2017 GIP RENATER
11-
# Copyright 2017, 2018, 2019, 2020 The Sympa Community. See the AUTHORS.md
12-
# file at the top-level directory of this distribution and at
11+
# Copyright 2017, 2018, 2019, 2020, 2021 The Sympa Community. See the
12+
# AUTHORS.md file at the top-level directory of this distribution and at
1313
# <https://github.com/sympa-community/sympa.git>.
1414
#
1515
# This program is free software; you can redistribute it and/or modify
@@ -6037,7 +6037,8 @@ sub _update_list_db {
60376037

60386038
my $name = $self->{'name'};
60396039
my $searchkey =
6040-
substr( Sympa::Tools::Text::foldcase($self->{'admin'}{'subject'} || ''), 0, 255);
6040+
Sympa::Tools::Text::clip(
6041+
Sympa::Tools::Text::foldcase($self->{'admin'}{'subject'} // ''), 255);
60416042
my $status = $self->{'admin'}{'status'};
60426043
my $robot = $self->{'domain'};
60436044

0 commit comments

Comments
 (0)