Server does not fully collapse spaces surrounding non-printable characters

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 2015-07-27
    • Affects Version/s: None
    • Component/s: None
    • None

      I observed that we collapse spaces before non-printable chars are removed, at https://github.com/metabrainz/musicbrainz-server/blob/9d8752d/lib/MusicBrainz/Server/Data/Utils.pm#L314

      I assume this is how http://musicbrainz.org/edit/33190862 was entered, because /ws/js/edit trims all the track names just fine and I can't see any other way to bypass the space collapsing code. (If the problem was in the /ws/js/edit code, I think the issue would be more widespread.)

            Assignee:
            Michael Wiencek
            Reporter:
            Michael Wiencek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2015-07-27