Commit 7185c799 authored by Honfika's avatar Honfika

Check the value length to avoid exceptions.

parent 7e2fa4fe
......@@ -36,7 +36,7 @@ namespace Titanium.Web.Proxy.Extensions
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);
}
......
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