CVSTrac Legacy Code

Check-in [5124b0f577]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:block PROXY param. See https://httpoxy.org/
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5124b0f577c4b3fe93abc6213155fc60ffbe9fc4
User & Date: cpb 2016-07-18 19:22:03
Context
2016-07-18
19:27
slightly cleaner check-in: 3625b606ff user: cpb tags: trunk
19:22
block PROXY param. See https://httpoxy.org/ check-in: 5124b0f577 user: cpb tags: trunk
2015-06-17
13:04
We need to use the "full" commit id for the base too. check-in: 6de5916d35 user: root tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to cgi.c.

2635
2636
2637
2638
2639
2640
2641




2642
2643
2644
2645
2646
2647
2648
    }else if( strcmp(zFieldName,"content-type:")==0 ){
      putenv(mprintf("CONTENT_TYPE=%s", zVal));
    }else{
      for(i=0; zFieldName[i]; i++){
        if( zFieldName[i]==':' && !zFieldName[i+1] ) zFieldName[i] = 0;
        else if(!isalnum(zFieldName[i])) zFieldName[i]='_';
        else zFieldName[i] = toupper(zFieldName[i]);




      }
      putenv(mprintf("HTTP_%s=%s", zFieldName,zVal));
    }
  }

  cgi_init();
}







>
>
>
>







2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
    }else if( strcmp(zFieldName,"content-type:")==0 ){
      putenv(mprintf("CONTENT_TYPE=%s", zVal));
    }else{
      for(i=0; zFieldName[i]; i++){
        if( zFieldName[i]==':' && !zFieldName[i+1] ) zFieldName[i] = 0;
        else if(!isalnum(zFieldName[i])) zFieldName[i]='_';
        else zFieldName[i] = toupper(zFieldName[i]);
      }
      if( !strcasecmp(zFieldName,"PROXY") ) {
        /* see https://httpoxy.org/ */
        continue;
      }
      putenv(mprintf("HTTP_%s=%s", zFieldName,zVal));
    }
  }

  cgi_init();
}