Skip to content

Bug if the artist string contains "$" #183

@MightyCreak

Description

@MightyCreak

Hi!

I've got the album Ten$ion from Die Antwoord, it's in FLAC and it doesn't work although other FLAC songs do work.

It seems that the "$" is the problem (and it seems to be a potential security issue).

Here is the error.log part where I try to play one of these FLAC song:

2016-04-22 04:31:58 Error: [NotFoundException] The requested file was not found
Request URL: /songs/download/474
Stack Trace:
#0 /var/www/sonerezh/app/Controller/SongsController.php(521): CakeResponse->file('/var/www/sonerezh/...', Array)
#1 [internal function]: SongsController->download('474')
#2 /var/www/sonerezh/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(SongsController), Array)
#3 /var/www/sonerezh/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#4 /var/www/sonerezh/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(SongsController), Object(CakeRequest))
#5 /var/www/sonerezh/app/webroot/index.php(108): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#6 {main}

As you can see it tries to get /var/www/sonerezh/...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions