Skip to content

URL with more than one 'symphony' string make "File browser" not work #18

@r00dY

Description

@r00dY

Hello kanduvisla,

In ckeditor/assets/filebrowser.js, line 8:

Symphony.WEBSITE = window.location.toString().match(/^(.+?)\/symphony/)[1];

you use "lazy plus", I mean ".+?" regexp.

I've put up new environment recently, and URL to my new project's symphony administration panel looked this way:

http://127.0.0.1/symphony/PROJECT/symphony/

Unfortunately, your way of extracting Symphony.WEBSITE gives only http://127.0.0.1, because regexp stops after first symphony string. If you use "greedy plus" (only .+, without ?), it would properly give http://127.0.0.1/symphony/PROJECT and this makes file browser work properly.

It took me quite a bit to look this bug up! I hope that my little contribution will help somebody in the future ;)

cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions