Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

AssetManager: css merging not properly handling relative paths containing . or .. #1682

Closed
robocoder opened this Issue · 3 comments

1 participant

Anthon Pang
Anthon Pang
Collaborator

I installed piwik in a directory, 2 levels down from the web server's document root, i.e., /var/www/one/two/, and I'm getting a number of 404 errors, e.g., GET /themes/default/images/xxx, when it should be /one/two/themes/default/images/xxx.

In asset_manager_global_css.css, I see:

url(../../themes/default/./images/xxx)

This should be either:

url(./themes/default/images/xxx)
url(themes/default/images/xxx)
Anthon Pang
Collaborator

(In [3101]) fixes #1682

Anthon Pang
Collaborator

(In [3102]) refs #1682 - path consistency

Anthon Pang
Collaborator

(In [3104]) refs #1682 - use realpath to remove ..

Anthon Pang robocoder added this to the Piwik 1.1 milestone
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.