Skip to content
Snippets Groups Projects
Commit ae226a32 authored by rswindell's avatar rswindell
Browse files

Only write the filename (not the entire path) to md5 history file.

parent b6c62091
No related branches found
No related tags found
No related merge requests found
......@@ -493,7 +493,7 @@ for(i in area) {
line=line.slice(1); // Skip prepended dots
if(flags.indexOf('b')>=0) { // decode attachments
if(line.substr(0,6)=="begin ") {
if(file==undefined && line.substr(0,6)=="begin ") {
// Parse uuencode header
arg=line.split(/\s+/);
arg.splice(0,2); // strip "begin 666 "
......@@ -568,7 +568,7 @@ for(i in area) {
}
/* Append MD5 to history file */
if(md5_file.open("a")) {
md5_file.printf("%s %s\n",md5,file.name);
md5_file.printf("%s %s\n",md5,file_getname(file.name));
md5_file.close();
} else
printf("!ERROR %d (%s) creating/appending %s\r\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment