From c5c6546ff0c9b843e49b0cf50f7b690d09363142 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 25 Jul 2004 09:33:03 +0000 Subject: Disallow some more characters in the suggested filename. 2004-07-25 Christian Persch * embed/mozilla/EphyHeaderSniffer.cpp: Disallow some more characters in the suggested filename. --- ChangeLog | 6 ++++++ embed/mozilla/EphyHeaderSniffer.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 89f5e3998..8222452a5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-07-25 Christian Persch + + * embed/mozilla/EphyHeaderSniffer.cpp: + + Disallow some more characters in the suggested filename. + 2004-07-24 Adam Hooper * embed/mozilla/mozilla-notifiers.cpp: diff --git a/embed/mozilla/EphyHeaderSniffer.cpp b/embed/mozilla/EphyHeaderSniffer.cpp index 91ce298c0..470746d1a 100644 --- a/embed/mozilla/EphyHeaderSniffer.cpp +++ b/embed/mozilla/EphyHeaderSniffer.cpp @@ -327,7 +327,7 @@ nsresult EphyHeaderSniffer::PerformSave (nsIURI* inOriginalURI) NS_UTF16ToCString (defaultFileName, NS_CSTRING_ENCODING_UTF8, cDefaultFileName); char *default_name = g_strdup (cDefaultFileName.get()); - default_name = g_strdelimit (default_name, "/", ' '); + default_name = g_strdelimit (default_name, "/\\:", ' '); const char *key; key = ephy_embed_persist_get_persist_key (EPHY_EMBED_PERSIST (mEmbedPersist)); -- cgit v1.2.3