projects
/
profile
/
ivi
/
rygel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6f44ff
)
core: Limit length of generated filename
author
Jens Georg
<mail@jensge.org>
Tue, 27 Sep 2011 12:57:41 +0000
(14:57 +0200)
committer
Jens Georg
<mail@jensge.org>
Tue, 27 Sep 2011 12:57:41 +0000
(14:57 +0200)
src/rygel/rygel-item-creator.vala
patch
|
blob
|
history
diff --git
a/src/rygel/rygel-item-creator.vala
b/src/rygel/rygel-item-creator.vala
index
cabcbe0
..
33c5e4f
100644
(file)
--- a/
src/rygel/rygel-item-creator.vala
+++ b/
src/rygel/rygel-item-creator.vala
@@
-373,11
+373,13
@@
internal class Rygel.ItemCreator: GLib.Object, Rygel.StateMachine {
}
private string mangle_title (string title) throws Error {
-
return
this.title_regex.replace_literal (title,
+
var mangled =
this.title_regex.replace_literal (title,
-1,
0,
"_",
RegexMatchFlags.NOTEMPTY);
+
+ return mangled.substring (0, int.min (mangled.length, 240));
}
private async string create_uri (WritableContainer container, string title)