Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-8484

Server does not fully collapse spaces surrounding non-printable characters

    XMLWordPrintable

    Details

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

      Description

      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.)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  2015-07-27