Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Erdfelt2015-02-23 21:44:24 +0000
committerJoakim Erdfelt2015-02-23 21:44:53 +0000
commit4df5647f6dfdc5fa7abb812afe9290d60b17c098 (patch)
tree1c0df87fa4315c20c6d2d906a6dad0d12d4f59f4 /jetty-util
parentb69b8dfe504943b20f86b56233dc791a8081712e (diff)
downloadorg.eclipse.jetty.project-4df5647f6dfdc5fa7abb812afe9290d60b17c098.tar.gz
org.eclipse.jetty.project-4df5647f6dfdc5fa7abb812afe9290d60b17c098.tar.xz
org.eclipse.jetty.project-4df5647f6dfdc5fa7abb812afe9290d60b17c098.zip
460642 - HttpParser error 400 can expose previous buffer contents in HTTP status reason message
Diffstat (limited to 'jetty-util')
-rw-r--r--jetty-util/src/main/java/org/eclipse/jetty/util/BufferUtil.java15
1 files changed, 0 insertions, 15 deletions
diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/BufferUtil.java b/jetty-util/src/main/java/org/eclipse/jetty/util/BufferUtil.java
index cd5eb9af24..5f4d17a374 100644
--- a/jetty-util/src/main/java/org/eclipse/jetty/util/BufferUtil.java
+++ b/jetty-util/src/main/java/org/eclipse/jetty/util/BufferUtil.java
@@ -954,21 +954,6 @@ public class BufferUtil
return buf.toString();
}
- /* ------------------------------------------------------------ */
- /** Convert buffer to a Debug String.
- * @param buffer
- * @return A string showing the escaped content of the buffer around the
- * position and limit (marked with <<< and >>>)
- */
- public static String toDebugString(ByteBuffer buffer)
- {
- if (buffer == null)
- return "null";
- StringBuilder buf = new StringBuilder();
- appendDebugString(buf,buffer);
- return buf.toString();
- }
-
private static void appendDebugString(StringBuilder buf,ByteBuffer buffer)
{
for (int i = 0; i < buffer.position(); i++)

Back to the top