예제 #1
0
파일: SiteInfoCGI.cs 프로젝트: woohn/Pisces
        public void Run(string query = "")
        {
            Console.Write("Content-type: text/html\n\n");

            if (query == "")
            {
                query = HydrometWebUtility.GetQuery();
            }
            query = System.Uri.UnescapeDataString(query);

            if (!ValidQuery(query))
            {
                HydrometWebUtility.PrintHydrometTrailer("Error: Invalid query");
                return;
            }

            WriteCsv(query);
        }
예제 #2
0
        public void Run(string query = "")
        {
            Console.Write("Content-type: text/html\n\n");

            if (query == "")
            {
                query = HydrometWebUtility.GetQuery();
            }
            query = HttpUtility.HtmlDecode(query);

            if (!ValidQuery(query))
            {
                HydrometWebUtility.PrintHydrometTrailer("Error: Invalid query");
                return;
            }

            WriteCsv(query);
        }