Correct osSetContentType() threat check to query osSetContentType rather than osSetResponseType

connector_plugin
Justin Clark-Casey (justincc) 2012-10-10 01:39:47 +01:00
parent 11d8119a21
commit 756ac4f321
1 changed files with 3 additions and 1 deletions

View File

@ -3545,10 +3545,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
/// <returns></returns> /// <returns></returns>
public void osSetContentType(LSL_Key id, string type) public void osSetContentType(LSL_Key id, string type)
{ {
CheckThreatLevel(ThreatLevel.High,"osSetResponseType"); CheckThreatLevel(ThreatLevel.High, "osSetContentType");
if (m_UrlModule != null) if (m_UrlModule != null)
m_UrlModule.HttpContentType(new UUID(id),type); m_UrlModule.HttpContentType(new UUID(id),type);
} }
/// Shout an error if the object owner did not grant the script the specified permissions. /// Shout an error if the object owner did not grant the script the specified permissions.
/// </summary> /// </summary>
/// <param name="perms"></param> /// <param name="perms"></param>