ESPWebDAV icon indicating copy to clipboard operation
ESPWebDAV copied to clipboard

Wrong Name issue when not using USE_SDFAT

Open spilz87 opened this issue 2 years ago • 0 comments

in file ESPWebDAV.cpp :

#ifdef USE_SDFAT
	char buf[255];
	curFile->getName(buf, sizeof(buf));
#else
	const char* buf = curFile->name() + 1;
#endif

the "+1" schouldn't exist, it change the name of the files and we can not download anymore

it should be

#ifdef USE_SDFAT
	char buf[255];
	curFile->getName(buf, sizeof(buf));
#else
	const char* buf = curFile->name();
#endif

spilz87 avatar Apr 25 '23 11:04 spilz87