-
Committer:
Chad Miller
-
Date:
2010-10-07 20:25:59 UTC
-
Revision ID:
chad.miller@canonical.com-20101007202559-nrch54ceymnx2xpp
Avoid unsafe object addition to make Strings. (LP: 652542)
Ubuntu One servers gave out bad "path" attributes on directory+child XML
documents, so it exposed a bug where the MusicDirectory.Entry path could
have no slashes and cause the parent directory of all stored files to be the
word "null".
Now, Test if any non-first character of the song path is the directory
separator, and only if it is, then trust that path to be splitable into some
filename and a parent path. Else, constuct the path as if the song path is
null.