diff -pru dillo-cvs20051106-0.8.5-pre-DIRTY/dpi/file.c dillo-cvs20051106-0.8.5-pre-WORK/dpi/file.c --- dillo-cvs20051106-0.8.5-pre-DIRTY/dpi/file.c 2005-06-12 15:44:52.000000000 +0200 +++ dillo-cvs20051106-0.8.5-pre-WORK/dpi/file.c 2005-06-12 15:47:51.000000000 +0200 @@ -747,14 +747,15 @@ static char *File_normalize_path(const c return NULL; str += 5; - if (*str == '\0') - return NULL; /* Skip slashes */ while (str[0] == '/' && str[1] != '\0' && str[1] == '/') str++; - if (*str == '~') { + if (*str == '\0') { + /* Give CWD if the string is only "file:" */ + basename = g_get_current_dir(); + } else if (*str == '~') { if (str[1] == '\0' || str[1] == '/') { /* Expand 'tilde' to user's home */ basename = g_strdup(g_get_home_dir());