aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie2011-12-05 15:57:47 +0100
committerMelanie2011-12-05 15:57:47 +0100
commit3281b993620a4db85ae26d3d080a2549ae5f405a (patch)
tree245a63ef81e4c2f1a494a7ecc38afeee08e7037c /OpenSim
parentDon't allow deletion of a terrain from the database unless we have one to rep... (diff)
downloadopensim-SC_OLD-3281b993620a4db85ae26d3d080a2549ae5f405a.zip
opensim-SC_OLD-3281b993620a4db85ae26d3d080a2549ae5f405a.tar.gz
opensim-SC_OLD-3281b993620a4db85ae26d3d080a2549ae5f405a.tar.bz2
opensim-SC_OLD-3281b993620a4db85ae26d3d080a2549ae5f405a.tar.xz
Strip CR from http responses and limit them to 2048 chars
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs4
1 files changed, 3 insertions, 1 deletions
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
433 433
434 // continue building the string 434 // continue building the string
435 sb.Append(tempString); 435 sb.Append(tempString);
436 if (sb.Length > 2048)
437 break;
436 } 438 }
437 } while (count > 0); // any more data to read? 439 } while (count > 0); // any more data to read?
438 440
439 ResponseBody = sb.ToString(); 441 ResponseBody = sb.ToString().Replace("\r", "");
440 } 442 }
441 catch (Exception e) 443 catch (Exception e)
442 { 444 {