Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
4a81e4a2
Commit
4a81e4a2
authored
Apr 19, 2021
by
IKEDA Soji
Browse files
[-bug] Comments in HTTP Accept-Language field should be omitted.
parent
531b497c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Sympa/Language.pm
View file @
4a81e4a2
...
...
@@ -229,6 +229,9 @@ sub implicated_langs {
sub
parse_http_accept_string
{
my
$accept_string
=
shift
||
'';
# Strip comments.
1
while
$accept_string
=~
s/\s*[(][^()]*[)]\s*/ /g
;
$accept_string
=~
s/^\s+//
;
$accept_string
=~
s/\s+$//
;
$accept_string
||=
'
*
';
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment