summaryrefslogtreecommitdiffstats
path: root/qthelper.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-09 11:21:46 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-09 17:04:30 -0700
commit57507cfb93984e520fdd9545c84ea3b921c2914e (patch)
tree1439eb76eca2d6effd65f68c4a7b4feb851444c6 /qthelper.cpp
parenta04f1fd13317034c471ad7eb8dbf55375566f947 (diff)
downloadsubsurface-57507cfb93984e520fdd9545c84ea3b921c2914e.tar.gz
Cloud storage: implement confirmation of email address via PIN
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qthelper.cpp')
-rw-r--r--qthelper.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/qthelper.cpp b/qthelper.cpp
index a85be003e..fb688746e 100644
--- a/qthelper.cpp
+++ b/qthelper.cpp
@@ -1024,8 +1024,7 @@ fraction_t string_to_fraction(const char *str)
int getCloudURL(QString &filename)
{
QString email = QString(prefs.cloud_storage_email);
- email.replace("@", "_at_");
- email.replace(QRegularExpression("[^a-zA-Z0-9._+-]"), "");
+ email.replace(QRegularExpression("[^a-zA-Z0-9@._+-]"), "");
if (email.isEmpty() || same_string(prefs.cloud_storage_password, ""))
return report_error("Please configure Cloud storage email and password in the preferences");
if (email != prefs.cloud_storage_email_encoded) {