• Nn my_calendar_output.php:384-385 there is an use of _mc_is_url (includes/general-utilities.php:290-292) which returns false on automatic links, resulting in calendar grid being displayed without links to events.

    _mc_is_url returns false on valid url with query string (masked example): "https://xxxxxxxxxx.xxxxxx.xx/xxxxxxxxxxxxxxxxx/xx/xxxxxxxxxxx/kalendarz?cid=mc-3d5a35dc491e7c24858a2c2a1c6047be&mc_id=1906"

    Temp fix was to change the function itself to

    function _mc_is_url( $url ) {
    	return filter_var($url, FILTER_VALIDATE_URL);
    }

    From preg_match( '|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $url );

    But I’d like to know why urls generated by the plugin are not validated as urls.

    • This topic was modified 2 years, 9 months ago by czokalapik.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘_mc_is_url() working incorrectly’ is closed to new replies.