After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 687177 - CSV splitting is faulty.
CSV splitting is faulty.
Status: RESOLVED FIXED
Product: rygel
Classification: Applications
Component: librygel-server
0.17.x
Other Linux
: Normal normal
: ---
Assigned To: rygel-maint
rygel-maint
Depends on:
Blocks:
 
 
Reported: 2012-10-30 09:18 UTC by Krzesimir Nowak
Modified: 2012-11-01 12:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix CSV splitting. (3.21 KB, patch)
2012-10-30 09:18 UTC, Krzesimir Nowak
committed Details | Review

Description Krzesimir Nowak 2012-10-30 09:18:06 UTC
Created attachment 227617 [details] [review]
Fix CSV splitting.

It does not add the last value in CSV to list (so 'a,b' results in list with only 'a'). Also chokes on empty values like 'a,,b' (list containing 'a', comma and empty string - garbage in general). Escaping backslashes should be removed from values list (so 'a,\,,b' should result in list of 'a', comma and 'b').

Attached patch should fix those issues.