Hello ..
I am trying to match existing URL in my site to be cross checked before posting if there is an existing URL the website stops the user from posting the plugin is working for certain URL say ..
http://google.com , https://google.com (It recognize for these type of URL )
but it does not recognize these..
http://www.google.com , https://www.google.com
For ur reference :
if($address){if(!preg_match("#^((ht|f)tps?:)?//|www.#i",$address)) { //if(!preg_match("#^((ht|f)tps?:)?//#i", $address))$address = "http://www.$address" ; //$address = "http://$address"}$address = rtrim($address, '/');$entities = elgg_get_entities_from_metadata(array( 'type' => 'object', 'subtype' => 'bookmarks', 'metadata_name' => 'address', 'metadata_value' => $address, 'limit' => 1));
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- meril@merilturock
meril - 0 likes
You must log in to post replies.Does anyone knows what code i have to change to get this thing fixed ..