Skip to content
This repository was archived by the owner on Apr 12, 2025. It is now read-only.
This repository was archived by the owner on Apr 12, 2025. It is now read-only.

PHP files are written in public directory #142

@integratedforpublishers

Description

Some Bower supporting repositories contain PHP files. For example the jQuery repo contains some PHP test files:
https://github.com/jquery/jquery/tree/master/test/data

In the default configuration the assets:install will copy the full components directory to a public path (like web/bundles/app/components), including the PHP files, making them available to the public.

The jQuery files do not seem to be very dangerous, but some repos will install a file uploader into your public area:
https://github.com/blueimp/jQuery-File-Upload/tree/master/server/php

I think these files should either be stripped from the bundle components folder, or not installed in the public folder. I think it should be possible to configure the safe extensions, because they might be different per bundle or project.

Also the "ignore" section of bower.json files is ignored. Filtering these field would help, but is not 100% as it isn't configured correctly in every repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions