Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3: improper params escaping #342

Open
archseer opened this issue Sep 24, 2013 · 1 comment
Open

v3: improper params escaping #342

archseer opened this issue Sep 24, 2013 · 1 comment

Comments

@archseer
Copy link

Had a song titled "10 - Haj F. Karimah - Consequences". It got displayed correctly in the search page, and the link pointing to it's song was of the format artists/Various Artists/songs/10 - Haj F. Karimah - Consequences. I got an error:

2013-09-24-203236_1920x1080_scrot

as you can see, the params got improperly parsed, the title got split at the dot, and the remainder got put into the format key.

{"artist_name"=>"Various Artists",
 "title"=>"10 - Haj F",
 "format"=>" Karimah - Consequences"}

There seem to be further problems with the dot, the album name is properly displayed in the search page ("DreamTime Departures Vol. 9")
2013-09-24-204322_1920x1080_scrot

...but in the /:artist/albums/:album page, again, everything to the right of the dot is missing.

2013-09-24-203805_1920x1080_scrot

@archseer
Copy link
Author

Apparently this can be easily solved with constraints: http://legacy.x3ro.de/rails-3-routing-parameters-dots/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant