* This will add a protocol prefix to the live cam url
*/
$liveCamUrl = $r['live_cam_url'];
- $r['live_cam_url'] = addUrlProtocol($liveCamUrl);
+ if (!preg_match("~^(?:f|ht)tps?://~i", $liveCamUrl)) {
+ $r['live_cam_url'] = "http://" . $liveCamUrl;
+ }
$formattedStr = trim(preg_replace('/\s\s+/', ' ', $r['short_descr']));
$r['short_descr'] = substr($formattedStr, 0, 120).$dotdotdot;
* Plugin Name: GLM Members Database
* Plugin URI: http://www.gaslightmedia.com/
* Description: Gaslight Media Members Database.
- * Version: 2.6.4
+ * Version: 2.6.5
* Author: Gaslight Media
* Author URI: http://www.gaslightmedia.com/
* License: GPL2
* @package glmMembersDatabase
* @author Chuck Scott <cscott@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
- * @version 2.6.4
+ * @version 2.6.5
*/
/*
*
*/
-define('GLM_MEMBERS_PLUGIN_VERSION', '2.6.4');
+define('GLM_MEMBERS_PLUGIN_VERSION', '2.6.5');
define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.19');
// Check if plugin version is not current in WordPress option and if needed updated it