Skip to content

Bad inclusion label subscriber with long path (#1943) #1952

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib/Sympa/Request/Handler/include.pm
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ sub _get_data_sources {
foreach my $i (@$inc) {
# Special case: include_file is not paragraph.
unless (ref $i) {
my $name = substr [split m{/}, $i]->[-1], 0, 15;
my $name = substr [split m{/}, $i]->[-1], 0, 50;
$i = {name => $name, path => $i};
}

Expand All @@ -106,7 +106,7 @@ sub _get_data_sources {
if ($ptype eq 'include_file') {
# Special case: include_file is not paragraph.
unshift @config, map {
my $name = substr [split m{/}, $_]->[-1], 0, 15;
my $name = substr [split m{/}, $_]->[-1], 0, 50;
{name => $name, path => $_};
} grep {
$_
Expand Down
Loading