[gnome-builder] project: sanitize more unlikely characters from id
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] project: sanitize more unlikely characters from id
- Date: Wed, 24 Aug 2016 19:12:26 +0000 (UTC)
commit cbca6bd3924b45dcfa32025dfd5af9e8c15d3a78
Author: Christian Hergert <chergert redhat com>
Date: Wed Aug 24 12:11:12 2016 -0700
project: sanitize more unlikely characters from id
We should use project id for even more things, but we need to sanitize a
bit more. Arguably we should consider just allowing alnum and +-_
libide/projects/ide-project.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/projects/ide-project.c b/libide/projects/ide-project.c
index 27390d6..2632b6a 100644
--- a/libide/projects/ide-project.c
+++ b/libide/projects/ide-project.c
@@ -101,7 +101,7 @@ ide_project_create_id (IdeProject *self)
{
g_assert (IDE_IS_PROJECT (self));
- return g_strdelimit (g_strdup (self->name), " /|<>", '-');
+ return g_strdelimit (g_strdup (self->name), " /|<>\n\t", '-');
}
const gchar *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]