Commit 203a8310 authored by Honfika's avatar Honfika

Check the value length to avoid exceptions.

parent 50d4e75e
...@@ -36,7 +36,7 @@ namespace Titanium.Web.Proxy.Extensions ...@@ -36,7 +36,7 @@ namespace Titanium.Web.Proxy.Extensions
continue; continue;
} }
if (value[0] == '"' && value[value.Length - 1] == '"') if (value.Length > 2 && value[0] == '"' && value[value.Length - 1] == '"')
{ {
value = value.Substring(1, value.Length - 2); value = value.Substring(1, value.Length - 2);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment