|
|
| version 1.97, 2021/01/13 21:28:15 | version 1.99, 2021/11/08 11:44:19 |
|---|---|
| Line 134 static void _crypt(Request& r, MethodPar | Line 134 static void _crypt(Request& r, MethodPar |
| const char* normal_salt; | const char* normal_salt; |
| char normalize_buf[MAX_STRING]; | char normalize_buf[MAX_STRING]; |
| if(prefix_size==strlen(maybe_bodyless_salt)) { // bodyless? | if(prefix_size==strlen(maybe_bodyless_salt)) { // bodyless? |
| strncpy(normalize_buf, maybe_bodyless_salt, MAX_STRING-MAX_SALT-1); | pa_strncpy(normalize_buf, maybe_bodyless_salt, MAX_STRING-MAX_SALT); |
| char *cur=normalize_buf+strlen(normalize_buf); | char *cur=normalize_buf+strlen(normalize_buf); |
| // sould add up MAX_SALT random chars | // sould add up MAX_SALT random chars |
| static unsigned char itoa64[] = /* 0 ... 63 => ASCII - 64 */ | static unsigned char itoa64[] = /* 0 ... 63 => ASCII - 64 */ |
| Line 343 String::C getData(Value& vdata, Request& | Line 343 String::C getData(Value& vdata, Request& |
| String::Body body=sdata->cstr_to_string_body_untaint(String::L_AS_IS, r.connection(false), &r.charsets); // explode content, honor tainting changes | String::Body body=sdata->cstr_to_string_body_untaint(String::L_AS_IS, r.connection(false), &r.charsets); // explode content, honor tainting changes |
| return String::C(body.cstr(), body.length()); | return String::C(body.cstr(), body.length()); |
| } else { | } else { |
| VFile *file=vdata.as_vfile(String::L_AS_IS); | VFile *file=vdata.as_vfile(); |
| return String::C(file->value_ptr(),file->value_size()); | return String::C(file->value_ptr(),file->value_size()); |
| } | } |
| } | } |