diff --git a/apps/admin/conf/embed.php b/apps/admin/conf/embed.php index 960cfa65d..6cd7dd190 100644 --- a/apps/admin/conf/embed.php +++ b/apps/admin/conf/embed.php @@ -9,7 +9,7 @@ to[type] = text to[initial] = "http://" to[not empty] = 1 -to[regex] = "/^(https?:\/)?\/.+$/" +to[url] = 1 to[message] = Please enter a valid URL. code[label] = Status @@ -26,7 +26,7 @@ to[label] = Link to[type] = text to[initial] = "http://" -to[regex] = "/^(https?:\/)?\/.+$/" +to[url] = 1 to[message] = Please enter a valid URL. user_type[label] = User role diff --git a/apps/social/conf/embed.php b/apps/social/conf/embed.php index 3ffc0211b..c3851a7ff 100644 --- a/apps/social/conf/embed.php +++ b/apps/social/conf/embed.php @@ -8,7 +8,7 @@ url[label] = Link url[type] = text url[not empty] = 1 -url[regex] = "/^http:\/\/.+$/" +url[url] = 1 url[message] = Please enter a valid URL. [social/facebook/like-box] @@ -20,7 +20,7 @@ url[label] = Facebook Page URL url[type] = text url[not empty] = 1 -url[regex] = "/^http:\/\/.+$/" +url[url] = 1 url[message] = Please enter a valid URL. width[label] = Width @@ -67,7 +67,7 @@ url[label] = Link url[type] = text url[not empty] = 1 -url[regex] = "/^http:\/\/.+$/" +url[url] = 1 url[message] = Please enter a valid URL. [social/facebook/commentcount] @@ -78,7 +78,7 @@ url[label] = Link url[type] = text url[not empty] = 1 -url[regex] = "/^http:\/\/.+$/" +url[url] = 1 url[message] = Please enter a valid URL. [social/twitter/follow] @@ -127,7 +127,7 @@ url[label] = Link url[type] = text url[not empty] = 1 -url[regex] = "/^http:\/\/.+$/" +url[url] = 1 url[message] = Please enter a valid URL. via[label] = Twitter ID @@ -141,7 +141,7 @@ url[label] = Link url[type] = text url[not empty] = 1 -url[regex] = "/^http:\/\/.+$/" +url[url] = 1 url[message] = Please enter a valid URL. [social/video/youtube] @@ -152,7 +152,7 @@ url[label] = Link url[type] = text url[not empty] = 1 -url[regex] = "/^https?:\/\/.+$/" +url[url] = 1 url[message] = Please enter a valid URL. width[label] = Player width @@ -242,7 +242,7 @@ url[label] = Link url[type] = text url[not empty] = 1 -url[regex] = "/^https?:\/\/.+$/" +url[url] = 1 url[message] = Please enter a valid URL. width[label] = Player width