[BACK]Return to oxcgi.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / kan96xx / plugin

Diff for /OpenXM/src/kan96xx/plugin/oxcgi.c between version 1.3 and 1.5

version 1.3, 2004/09/27 01:20:46 version 1.5, 2004/09/28 12:20:40
Line 1 
Line 1 
 /* $OpenXM: OpenXM/src/kan96xx/plugin/oxcgi.c,v 1.2 2004/09/24 08:35:47 takayama Exp $ */  /* $OpenXM: OpenXM/src/kan96xx/plugin/oxcgi.c,v 1.4 2004/09/27 11:18:23 takayama Exp $ */
 #include <stdio.h>  #include <stdio.h>
 #include "datatype.h"  #include "datatype.h"
 #include "stackm.h"  #include "stackm.h"
Line 34  struct object cgiUrlEncodingToKeyValuePair(char *s) {
Line 34  struct object cgiUrlEncodingToKeyValuePair(char *s) {
   n = strlen(s); start = -1;    n = strlen(s); start = -1;
   for (i=0; i<n; i++) {    for (i=0; i<n; i++) {
     if (s[i] == '?') { start=i+1; break;}      if (s[i] == '?') { start=i+1; break;}
     }
     if (start == -1) {
       start = 0;
       for (i=0; i<n; i++) {
         if (s[i] > ' ') { start = i; break; }
       }
       printf("start=%d\n",start);
   }    }
   for (k=0; k<2; k++) {    for (k=0; k<2; k++) {
     /* k==0 path one. Count nOfPairs. */      /* k==0 path one. Count nOfPairs. */

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>