Fossil SCM

Improve comment.

mistachkin 2019-08-27 05:57 noJsonCgiFlag
Commit 316dd394b8a839d2b37557e0f940c7573d0d171342ae9798fd4cf2d2cb81cf25
1 file changed +3 -2
+3 -2
--- src/cgi.c
+++ src/cgi.c
@@ -564,12 +564,13 @@
564564
cgi_set_parameter_nocopy(zName, mprintf("%s",zValue), 0);
565565
}
566566
567567
568568
/*
569
-** Returns non-zero if the specified character is lower case -OR-
570
-** CGI has been configured to allow uppercase parameter names.
569
+** Returns non-zero if the specified character is lowercase -OR-
570
+** the specified character is uppercase and the CGI subsystem has
571
+** been configured to allow uppercase parameter names.
571572
*/
572573
int cgi_char_allowed(char c){
573574
if( fossil_islower(c) ){
574575
return 1; /* lowercase letter, always OK */
575576
}else if( fossil_isupper(c) && g.cgiUpperParamsOk ){
576577
--- src/cgi.c
+++ src/cgi.c
@@ -564,12 +564,13 @@
564 cgi_set_parameter_nocopy(zName, mprintf("%s",zValue), 0);
565 }
566
567
568 /*
569 ** Returns non-zero if the specified character is lower case -OR-
570 ** CGI has been configured to allow uppercase parameter names.
 
571 */
572 int cgi_char_allowed(char c){
573 if( fossil_islower(c) ){
574 return 1; /* lowercase letter, always OK */
575 }else if( fossil_isupper(c) && g.cgiUpperParamsOk ){
576
--- src/cgi.c
+++ src/cgi.c
@@ -564,12 +564,13 @@
564 cgi_set_parameter_nocopy(zName, mprintf("%s",zValue), 0);
565 }
566
567
568 /*
569 ** Returns non-zero if the specified character is lowercase -OR-
570 ** the specified character is uppercase and the CGI subsystem has
571 ** been configured to allow uppercase parameter names.
572 */
573 int cgi_char_allowed(char c){
574 if( fossil_islower(c) ){
575 return 1; /* lowercase letter, always OK */
576 }else if( fossil_isupper(c) && g.cgiUpperParamsOk ){
577

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button