Skip to content

CSS Filter issues #46

@Tardo

Description

@Tardo

These filter cause loading errors in some pages:

[?CSS_DOMAIN]s@[^'"\s]\s*<head[^>]*>(?=\s*[^'"\s])@$&<link rel="stylesheet" type="text/css" href="[CSS_PROTOCOL]://[CSS_DOMAIN]/ab2p.common.css"></link><link rel="stylesheet" type="text/css" href="[CSS_PROTOCOL]://[CSS_DOMAIN]/$host/ab2p.css"></link>@iUD

The problem comes from the quotation marks. The website that is giving me problems is https://duckduckgo.com/?q=privoxy due to a problem loading JavaScript...

a="<html><head><link rel="stylesheet“ type="text/css" href="https://css.privoxy.local/ab2p.common.css"></link>..."

Error: Uncaught SyntaxError: Unexpected identifier 'stylesheet'

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