From 3281b993620a4db85ae26d3d080a2549ae5f405a Mon Sep 17 00:00:00 2001 From: Melanie Date: Mon, 5 Dec 2011 15:57:47 +0100 Subject: Strip CR from http responses and limit them to 2048 chars --- .../Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs index 5e28ee1..84ff22b 100644 --- a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs +++ b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs @@ -433,10 +433,12 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest // continue building the string sb.Append(tempString); + if (sb.Length > 2048) + break; } } while (count > 0); // any more data to read? - ResponseBody = sb.ToString(); + ResponseBody = sb.ToString().Replace("\r", ""); } catch (Exception e) { -- cgit v1.1