From 2ac3d8656515e67209a8f5cd82e9e5a2167dbb44 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Mon, 24 Mar 2008 00:15:52 +0000 Subject: [PATCH] allow a wider selection of chars for pathname. fixes bug when session file cannot accomodate the actual path to audio files git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3167 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/utils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc index f98b24a4f2..eeef52d7f8 100644 --- a/libs/ardour/utils.cc +++ b/libs/ardour/utils.cc @@ -92,13 +92,13 @@ ustring legalize_for_path (ustring str) { ustring::size_type pos; - ustring legal_chars = "abcdefghijklmnopqrtsuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_+=: "; + ustring illegal_chars = "/\\*"; ustring legal; legal = str; pos = 0; - while ((pos = legal.find_first_not_of (legal_chars, pos)) != string::npos) { + while ((pos = legal.find_first_of (illegal_chars, pos)) != string::npos) { legal.replace (pos, 1, "_"); pos += 1; }