Skip to content

Commit

Permalink
admin: trim carriage return
Browse files Browse the repository at this point in the history
Signed-off-by: NyaliaLui <[email protected]>
(cherry picked from commit f984ac3)
  • Loading branch information
NyaliaLui committed Aug 15, 2023
1 parent 3fe25e0 commit a4f4b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v/redpanda/admin_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2035,7 +2035,7 @@ admin_server::put_license_handler(std::unique_ptr<ss::httpd::request> req) {
}

try {
boost::trim_if(raw_license, boost::is_any_of(" \n"));
boost::trim_if(raw_license, boost::is_any_of(" \n\r"));
auto license = security::make_license(raw_license);
if (license.is_expired()) {
throw ss::httpd::bad_request_exception(
Expand Down

0 comments on commit a4f4b51

Please sign in to comment.