Skip to content

Commit

Permalink
fix: utf8 orgid support in url query string (#10394)
Browse files Browse the repository at this point in the history
fix: url param utf8 support for orgid
  • Loading branch information
4nt0ineB authored Jun 5, 2024
1 parent 07e005b commit 6b25efd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cgi/org.pl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
my $orgid = $Org_id;

if (defined single_param('orgid')) {
$orgid = get_fileid(single_param('orgid'), 1);
$orgid = remove_tags_and_quote(decode utf8 => single_param('orgid'));
}

$log->debug("org profile form - start", {type => $type, action => $action, orgid => $orgid, User_id => $User_id})
Expand Down
3 changes: 2 additions & 1 deletion lib/ProductOpener/Users.pm
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,8 @@ sub check_edit_owner ($user_ref, $errors_ref) {

# temporarily use the org passed as parameter
$user_ref->{pro_moderator_owner}
= get_string_id_for_lang("no_language", remove_tags_and_quote(single_param('pro_moderator_owner')));
= get_string_id_for_lang("no_language",
remove_tags_and_quote(decode utf8 => single_param('pro_moderator_owner')));

# If the owner id looks like a GLN, see if we have a corresponding org

Expand Down

0 comments on commit 6b25efd

Please sign in to comment.