webgrafia / ginger

Wordpress plugin to make website compliant with EU Cookie Policy, with opt-in feature
18 stars 7 forks source link

Undefined variable: url #10

Closed melvinkoopmans closed 6 years ago

melvinkoopmans commented 6 years ago

The variable $url is undefined in ginger/addon/logger/ginger.logger.php

var current_url = "<?php
            $curl = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
            if(filter_var($url, FILTER_VALIDATE_URL) === FALSE){
                $curl = get_bloginfo("url");
            }else{
                $curl = $curl;
            }
            echo $curl;
            ?>";
webgrafia commented 6 years ago

fixed