aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Pouar <thepouar@gmail.com>2017-02-14 11:01:12 -0600
committerGravatar Pouar <thepouar@gmail.com>2017-02-14 11:01:12 -0600
commit56b7151044c396008ce98917d069b9b814cb1c45 (patch)
tree3d7f9882597800e30e2b605dbef304cced1e3982
parentadd license (diff)
remove trailing spaceorigin/remove
-rw-r--r--identifurfcgi.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/identifurfcgi.c b/identifurfcgi.c
index a9b8784..449ec63 100644
--- a/identifurfcgi.c
+++ b/identifurfcgi.c
@@ -34,18 +34,18 @@ void getParam(const char *Name, char *Value) {
if (pos1) {
pos1 += strlen(Name);
- if (*pos1 == '=') { // Make sure there is an '=' where we expect it
+ if (*pos1 == '=') {
pos1++;
while (*pos1 && *pos1 != '&') {
- if (*pos1 == '%') { // Convert it to a single ASCII character and store at our Valueination
+ if (*pos1 == '%') {
*Value++ = (char)ToHex(pos1[1]) * 16 + ToHex(pos1[2]);
pos1 += 3;
- } else if( *pos1=='+' ) { // If it's a '+', store a space at our Valueination
+ } else if( *pos1=='+' ) {
*Value++ = ' ';
pos1++;
} else {
- *Value++ = *pos1++; // Otherwise, just store the character at our Valueination
+ *Value++ = *pos1++;
}
}
@@ -55,7 +55,7 @@ void getParam(const char *Name, char *Value) {
}
- strcpy(Value, ""); // If param not found, then use default parameter
+ strcpy(Value, "");
return;
}
@@ -64,7 +64,7 @@ int main(int argc, char **argv)
{
int sock;
FCGX_Request request;
- FCGX_Init();
+ FCGX_Init();
sock = FCGX_OpenSocket("/tmp/identifurfcgi.sock", 100);
FCGX_InitRequest(&request, sock, 0);
while (FCGX_Accept_r(&request) >= 0)