summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-03-26 21:34:43 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-03-26 21:34:43 +0000
commit0d2ce27d4a7b3d632068c1b2d0d16629e0c32c06 (patch)
tree28efa44f74a30afda6d4c7d2342c717b4d5836da
parent74d1ce79da9dd3621b74452f94eb2dbdcb41b9a3 (diff)
revert illegal/legal test change in legalize_for_path() (to be reverted again once we have a migration plan)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3192 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--libs/ardour/utils.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc
index eeef52d7f8..f98b24a4f2 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 illegal_chars = "/\\*";
+ ustring legal_chars = "abcdefghijklmnopqrtsuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_+=: ";
ustring legal;
legal = str;
pos = 0;
- while ((pos = legal.find_first_of (illegal_chars, pos)) != string::npos) {
+ while ((pos = legal.find_first_not_of (legal_chars, pos)) != string::npos) {
legal.replace (pos, 1, "_");
pos += 1;
}