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
f27897ba
Unverified
Commit
f27897ba
authored
Apr 27, 2021
by
IKEDA Soji
Committed by
GitHub
Apr 27, 2021
Browse files
Merge pull request #1152 from ikedas/accept-language by ikedas
[-bug] Comments in HTTP Accept-Language field should be omitted
parents
71d1c9e5
4a81e4a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Sympa/Language.pm
View file @
f27897ba
...
...
@@ -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