Diff for /parser3/src/classes/file.C between versions 1.85 and 1.86

version 1.85, 2002/06/18 11:09:02 version 1.86, 2002/06/18 11:12:05
Line 190  static void _stat(Request& r, const Stri Line 190  static void _stat(Request& r, const Stri
 }  }
   
 static bool is_safe_env_key(const char *key) {  static bool is_safe_env_key(const char *key) {
         if(strncmp(key, "HTTP_", 5)==0)          if(strnicmp(key, "HTTP_", 5)==0)
                 return true;                  return true;
         if(strncmp(key, "CGI_", 4)==0)          if(strnicmp(key, "CGI_", 4)==0)
                 return true;                  return true;
         for(int i=0; suexec_safe_env_lst[i]; i++) {          for(int i=0; suexec_safe_env_lst[i]; i++) {
                 if(strcmp(key, suexec_safe_env_lst[i])==0)                  if(stricmp(key, suexec_safe_env_lst[i])==0)
                         return true;                          return true;
         }          }
         return false;          return false;

Removed from v.1.85  
changed lines
  Added in v.1.86


E-mail: