[gnac/devel] Fixed bug #616395 (trac ticket #33)
- From: Benoît Dupasquier <bdupasqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnac/devel] Fixed bug #616395 (trac ticket #33)
- Date: Wed, 21 Apr 2010 23:33:03 +0000 (UTC)
commit 0bbbb4ce5a44db304759a697a5b93ab26df0a5c3
Author: Benoît Dupasquier <bdupasqu src gnome org>
Date: Wed Apr 21 22:10:02 2010 +0100
Fixed bug #616395 (trac ticket #33)
libgnac/libgnac-output.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/libgnac/libgnac-output.c b/libgnac/libgnac-output.c
index 05cfc30..c360953 100644
--- a/libgnac/libgnac-output.c
+++ b/libgnac/libgnac-output.c
@@ -135,9 +135,11 @@ libgnac_output_sanitize_path(const gchar *str,
s = g_strdup(str);
- /* XXX we cannot do that because of the custom patterns */
/* Replace path seperators with a hyphen */
- //g_strdelimit (s, G_DIR_SEPARATOR_S, '-');
+ /* This operation is done in libgnac_output_rename_pattern_set_replace
+ * as folder hierarchy and/or custom rename patterns may contain
+ * legitimate dir separators. */
+ //g_strdelimit(s, G_DIR_SEPARATOR_S, '-');
// TODO filesystem specific sanitizing
@@ -184,6 +186,8 @@ libgnac_output_rename_pattern_set_replace(LibgnacRenamePattern *pattern,
LibgnacTags *tags)
{
pattern->replace = libgnac_output_replace_pattern(pattern, tags);
+ /* Replace path seperators with a hyphen */
+ g_strdelimit(pattern->replace, G_DIR_SEPARATOR_S, '-');
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]