aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2008-05-24 05:45:02 +0800
committerChristian Persch <chpe@src.gnome.org>2008-05-24 05:45:02 +0800
commit1b0dc08db56a5f3d03805d594a99fe0b5ec7ef62 (patch)
treeeacd276ff86610d6321b45636a7553e069a2f304
parentbc489304588d450867da415317b3f084f38d253c (diff)
downloadgsoc2013-epiphany-1b0dc08db56a5f3d03805d594a99fe0b5ec7ef62.tar
gsoc2013-epiphany-1b0dc08db56a5f3d03805d594a99fe0b5ec7ef62.tar.gz
gsoc2013-epiphany-1b0dc08db56a5f3d03805d594a99fe0b5ec7ef62.tar.bz2
gsoc2013-epiphany-1b0dc08db56a5f3d03805d594a99fe0b5ec7ef62.tar.lz
gsoc2013-epiphany-1b0dc08db56a5f3d03805d594a99fe0b5ec7ef62.tar.xz
gsoc2013-epiphany-1b0dc08db56a5f3d03805d594a99fe0b5ec7ef62.tar.zst
gsoc2013-epiphany-1b0dc08db56a5f3d03805d594a99fe0b5ec7ef62.zip
Bail out if the --profile directory isn't an absolute path. Bug #518215.
svn path=/branches/gnome-2-22/; revision=8247
-rw-r--r--src/ephy-main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ephy-main.c b/src/ephy-main.c
index f4bfec47e..855f93f92 100644
--- a/src/ephy-main.c
+++ b/src/ephy-main.c
@@ -555,6 +555,11 @@ main (int argc,
g_print ("--profile can only be used in combination with --private-instance\n");
exit (1);
}
+ if (profile_directory != NULL && !g_path_is_absolute (profile_directory))
+ {
+ g_printerr ("The profile directory must be specified with an absolute path.\n");
+ exit (1);
+ }
if (arguments != NULL &&
eel_gconf_get_boolean (CONF_LOCKDOWN_DISABLE_ARBITRARY_URL))