Commit 500b9838 authored by Jakob Moser's avatar Jakob Moser
Browse files

Use different regex delimiters

parent 797b2352
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -135,8 +135,8 @@ function fscoli_show_embed_privacy_consent_prompt($embed_html) {

    // Try to guess the URL of the content provider, its domain and, using a hardcoded list of policies,
    // its privacy policy.
    $provider_url       = fscoli_regex_match_group('/src ?= ?["\'](https?://(.*?))/.*?["\']/', $embed_html, 1);
    $provider_domain    = fscoli_regex_match_group('/src ?= ?["\'](https?://(.*?))/.*?["\']/', $embed_html, 2);
    $provider_url       = fscoli_regex_match_group('#src ?= ?["\'](https?://(.*?))/.*?["\']#', $embed_html, 1);
    $provider_domain    = fscoli_regex_match_group('#src ?= ?["\'](https?://(.*?))/.*?["\']#', $embed_html, 2);

    $privacy_policy_url = null;
    if($provider_domain === "umap.openstreetmap.de") {