[gnac] Fixed bug #616395 (trac ticket #33)
- From: Benoît Dupasquier <bdupasqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnac] Fixed bug #616395 (trac ticket #33)
- Date: Wed, 21 Apr 2010 23:34:01 +0000 (UTC)
commit 27f485b800621dabaf40c7930237c89649f85715
Author: Benoît Dupasquier <bdupasqu src gnome org>
Date: Wed Apr 21 22:16:58 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 8213bfe..b236faa 100644
--- a/libgnac/libgnac-output.c
+++ b/libgnac/libgnac-output.c
@@ -134,9 +134,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
@@ -183,6 +185,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]