aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-07-25 17:33:03 +0800
committerChristian Persch <chpe@src.gnome.org>2004-07-25 17:33:03 +0800
commitc5c6546ff0c9b843e49b0cf50f7b690d09363142 (patch)
tree2a355217f8951932ba18c271af513c519ad32dcf
parentbf9c73d3a594df3decf46cf8767e54b2f42d7b38 (diff)
downloadgsoc2013-epiphany-c5c6546ff0c9b843e49b0cf50f7b690d09363142.tar
gsoc2013-epiphany-c5c6546ff0c9b843e49b0cf50f7b690d09363142.tar.gz
gsoc2013-epiphany-c5c6546ff0c9b843e49b0cf50f7b690d09363142.tar.bz2
gsoc2013-epiphany-c5c6546ff0c9b843e49b0cf50f7b690d09363142.tar.lz
gsoc2013-epiphany-c5c6546ff0c9b843e49b0cf50f7b690d09363142.tar.xz
gsoc2013-epiphany-c5c6546ff0c9b843e49b0cf50f7b690d09363142.tar.zst
gsoc2013-epiphany-c5c6546ff0c9b843e49b0cf50f7b690d09363142.zip
Disallow some more characters in the suggested filename.
2004-07-25 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EphyHeaderSniffer.cpp: Disallow some more characters in the suggested filename.
-rw-r--r--ChangeLog6
-rw-r--r--embed/mozilla/EphyHeaderSniffer.cpp2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 89f5e3998..8222452a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-07-25 Christian Persch <chpe@cvs.gnome.org>
+
+ * embed/mozilla/EphyHeaderSniffer.cpp:
+
+ Disallow some more characters in the suggested filename.
+
2004-07-24 Adam Hooper <adamh@cvs.gnome.org>
* 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));