您的位置:首页 > Web前端 > JavaScript

直接插入 - An Insecure JSON Data Transference from C# Server Page to Smart Devices Case Share

2012-05-14 04:54 537 查看
What is JSON, click her

I'm working on a project with JSON. 

Project Description

The page that reads database has existed already. The page is coded with C#. I need to reuse the page to the largest extent, and accommodate the data inquiries from smart devices with Android and iOS systems.

Solution

直接插入 the following line

SerResults jsonValidResult = new SerResults(true);

                System.Runtime.Serialization.Json.DataContractJsonSerializer serial = new System.Runtime.Serialization.Json.DataContractJsonSerializer(jsonValidResult.GetType());

                serial.WriteObject(Response.OutputStream, jsonValidResult);

                Response.OutputStream.Close();

Result

Professor was pretty upset

, because he believed this was an insecure solution. What should I do????
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐