From b479f9b015cf1b488a6daa7f488c7c28eb502f0a Mon Sep 17 00:00:00 2001 From: Theo Arends Date: Thu, 19 Apr 2018 21:30:07 +0200 Subject: [PATCH] Revert "Fix config filename truncation" This reverts commit cb0305d2a3e60e6f2377d0e3ee8ea18a32ce8edd. --- sonoff/_releasenotes.ino | 1 - sonoff/webserver.ino | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sonoff/_releasenotes.ino b/sonoff/_releasenotes.ino index 72b5f1901..034877a45 100644 --- a/sonoff/_releasenotes.ino +++ b/sonoff/_releasenotes.ino @@ -3,7 +3,6 @@ * Add random window to timers (#2447) * Add optional KNX IP Protocol Support (#2402) * Fix compile error when using ESP/Arduino library v2.3.0 by reverting KNX async UDP library to default UDP library (#2488,#2492,#2493) - * Fix configuration filename truncation when it contains spaces (#2484, #2490) * * 5.12.0l * Release rules up to 511 characters diff --git a/sonoff/webserver.ino b/sonoff/webserver.ino index b1e322648..38198826e 100644 --- a/sonoff/webserver.ino +++ b/sonoff/webserver.ino @@ -1001,7 +1001,7 @@ void HandleBackupConfiguration() WebServer->setContentLength(sizeof(buffer)); char attachment[100]; - snprintf_P(attachment, sizeof(attachment), PSTR("attachment; filename=Config_%s_%s.dmp"), SpaceToUnderscore(Settings.friendlyname[0]), my_version); + snprintf_P(attachment, sizeof(attachment), PSTR("attachment; filename=Config_%s_%s.dmp"), Settings.friendlyname[0], my_version); WebServer->sendHeader(F("Content-Disposition"), attachment); WebServer->send(200, FPSTR(HDR_CTYPE_STREAM), ""); memcpy(buffer, &Settings, sizeof(buffer));