562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
|
*/
void cgi_setenv(const char *zName, const char *zValue){
cgi_set_parameter_nocopy(zName, mprintf("%s",zValue), 0);
}
/*
** Returns non-zero if the specified character is lower case -OR-
** CGI has been configured to allow uppercase parameter names.
*/
int cgi_char_allowed(char c){
if( fossil_islower(c) ){
return 1; /* lowercase letter, always OK */
}else if( fossil_isupper(c) && g.cgiUpperParamsOk ){
return 1; /* uppercase letter, OK if allowed explicitly */
}
|
|
>
|
|
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
|
*/
void cgi_setenv(const char *zName, const char *zValue){
cgi_set_parameter_nocopy(zName, mprintf("%s",zValue), 0);
}
/*
** Returns non-zero if the specified character is lowercase -OR-
** the specified character is uppercase and the CGI subsystem has
** been configured to allow uppercase parameter names.
*/
int cgi_char_allowed(char c){
if( fossil_islower(c) ){
return 1; /* lowercase letter, always OK */
}else if( fossil_isupper(c) && g.cgiUpperParamsOk ){
return 1; /* uppercase letter, OK if allowed explicitly */
}
|