Projects
home:Eustace:branches:Eulaceura:Factory
resteasy
_service:obs_scm:CVE-2020-10688-2.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:CVE-2020-10688-2.patch of Package resteasy
From c6aac87508a99b0e5514da687abdb1ba246f3839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E7=94=B7?= <l.weinan@gmail.com> Date: Thu, 12 Mar 2020 12:13:17 +0800 Subject: [PATCH] update --- .../java/org/jboss/resteasy/core/StringParameterInjector.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/StringParameterInjector.java b/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/StringParameterInjector.java index 537ae0d..fbfd5d4 100755 --- a/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/StringParameterInjector.java +++ b/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/StringParameterInjector.java @@ -373,9 +373,9 @@ public class StringParameterInjector private String _encode(String strVal) { try { - return URLEncoder.encode(strVal, StandardCharsets.UTF_8.toString()); + return URLEncoder.encode(strVal, StandardCharsets.UTF_8.name()); } catch (UnsupportedEncodingException e) { - return e.getMessage(); + throw new RuntimeException(e); } } -- 2.23.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2