[pan: 4/7] another edge condition
- From: Dominique Dumont <ddumont src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan: 4/7] another edge condition
- Date: Sat, 24 Sep 2022 10:02:24 +0000 (UTC)
commit 30197585265fd82e78646d2e285585ab271e4ff7
Author: Thomas Tanner <thosrtanner googlemail com>
Date: Fri Sep 9 16:13:47 2022 +0100
another edge condition
pan/data-impl/data-io.cc | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/pan/data-impl/data-io.cc b/pan/data-impl/data-io.cc
index 5027ec7..864cc8d 100644
--- a/pan/data-impl/data-io.cc
+++ b/pan/data-impl/data-io.cc
@@ -145,6 +145,11 @@ namespace
std::regex::extended | std::regex::icase);
encoded_group = std::regex_replace(encoded_group, reserved, "$1%2E");
+
+ //Sigh - and finally we can't deal with a trailing '.' either
+ encoded_group = std::regex_replace(encoded_group,
+ std::regex("\\.$", std::regex::extended),
+ "%2E");
#endif
char * filename (g_build_filename (home.c_str(), "groups", encoded_group.c_str(), NULL));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]