mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
13 lines
308 B
C#
13 lines
308 B
C#
using System.Web.UI.WebControls;
|
|
using System.Web.Script.Serialization;
|
|
|
|
class Good
|
|
{
|
|
public static object Deserialize(TextBox textBox)
|
|
{
|
|
JavaScriptSerializer sr = new JavaScriptSerializer();
|
|
// GOOD: no unsafe type resolver
|
|
return sr.DeserializeObject(textBox.Text);
|
|
}
|
|
}
|