From: Steve Sutton Date: Fri, 3 Feb 2017 19:11:23 +0000 (-0500) Subject: Allow https X-Git-Tag: v1.5.4^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=7db0eb7b433051d9d3d4d50c0c2be83d8163a720;p=WP-Plugins%2Fglm-blocks.git Allow https Include optional s on end of http --- diff --git a/glm-blocks.php b/glm-blocks.php index ecaca76..a3c03f7 100644 --- a/glm-blocks.php +++ b/glm-blocks.php @@ -1,7 +1,7 @@ Author URI: http://www.gaslightmedia.com diff --git a/models/block.php b/models/block.php index 2fd4649..822bb17 100644 --- a/models/block.php +++ b/models/block.php @@ -240,7 +240,7 @@ class glm_models_block break; case 'url': if ($custom['glm_block_ext_url'][0] != '') { - $block->url = (preg_match('/^http:\/\//', $custom['glm_block_ext_url'][0])) + $block->url = (preg_match('/^https?:\/\//', $custom['glm_block_ext_url'][0])) ? $custom['glm_block_ext_url'][0] : 'http://' . $custom['glm_block_ext_url'][0]; $block->externalUrl = true;