Skip to content

Commit

Permalink
Update cite2template.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Saisengen committed Mar 11, 2024
1 parent 1ad2cea commit f10cf30
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions web-services/cite2template/cite2template.cs
Expand Up @@ -13,18 +13,17 @@ static void Sendresponse(string source, bool addauthor, string author, string re
if (addauthor)
answer = answer.Replace("%checked_author%", "checked");
Console.WriteLine(answer);
return;
}
static void Main()
{
string source = "", default_author = "", result = "";
bool addauthor = false;
string input = Console.ReadLine();
if (input == null)
bool method_is_post = Environment.GetEnvironmentVariable("REQUEST_METHOD") == "POST";
if (!method_is_post)
Sendresponse("", false, "", "");
else
{
var inputdata = input.Split('&');
var inputdata = Console.ReadLine().Split('&');
foreach (var param in inputdata)
{
var data = param.Split('=');
Expand Down

0 comments on commit f10cf30

Please sign in to comment.