Closed Bug 917409 Opened 11 years ago Closed 11 years ago

Trailing spaces on Soundcloud URLs are not stripped

Categories

(Webmaker Graveyard :: Popcorn Maker, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: cade, Assigned: mjschranz)

Details

Attachments

(1 file, 1 obsolete file)

This is causing a lot of trouble. STR: 1. add "https://soundcloud.com/offspring/americana " with the trailing space 2. add the clip to your project. it will not load.
Assignee: nobody → schranz.m
Status: NEW → ASSIGNED
Comment on attachment 806115 [details] [review] https://github.com/mozilla/popcorn.webmaker.org/pull/209 Does not work on projects that were previously saved with trailing spaces. Also does not work when added view the editor. It gets more complicated too, as in the cases where it was saved incorectly, the source looks like this: ["https://soundcloud.com/zedd/zedd-legend-of-zelda-original ?butteruid=1379442881010", ""] It has a trailing empty source, it should not. The space is between the url and ?butteruid, so trim is never going to catch it. It should not have a butteruid anyway.
Attachment #806115 - Flags: review?(scott) → review-
Comment on attachment 806115 [details] [review] https://github.com/mozilla/popcorn.webmaker.org/pull/209 Does not fix the track event if saved in the project before this fix.
Attachment #806115 - Flags: review?(scott) → review-
Needed to get this off my mind. It was bugging me and you seemed busier than I. R+ on your commit plus mine.
Attachment #806413 - Flags: review?(schranz.m)
Attachment #806413 - Attachment is obsolete: true
Attachment #806413 - Flags: review?(schranz.m)
Attachment #806115 - Flags: review- → review?(scott)
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Attachment mime type: text/plain text/plain → text/x-github-pull-request text/x-github-pull-request
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: