Skip to content

ResourceManager relative url check fails #61

@eliottrobson

Description

@eliottrobson

The ResourceManager getResourceUrl regex fails:
preg_match('#^(?:/|[a-z]:/).*$#i', $filename) === 0

when given an absolute URL (custom theme).

What is this supposed to do? Maybe a replacement such as:

preg_match('/^(https?)?:///', $filename)

could work?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions