_mc_is_url() working incorrectly
-
Nn
my_calendar_output.php:384-385there 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_urlreturnsfalseon 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.
The topic ‘_mc_is_url() working incorrectly’ is closed to new replies.