Vergleich inc/functions_post.php - 1.16 - 1.17

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 204Zeile 204

function doshorturl($url, $name="")
{


function doshorturl($url, $name="")
{

	$fullurl = $url;

 
	// attempt to make a bit of sense out of their url if they dont type it properly

	// attempt to make a bit of sense out of their url if they dont type it properly

	if(!preg_match("#[a-z0-9]+://#i", $fullurl))

	if(!preg_match("#[a-z0-9]+://#i", $url))

	{

	{

		$fullurl = "http://".$fullurl;

		$url = "http://".$url;

	}

	}

 
	$fullurl = $url;

	if(!$name)
{
$name = $url;

	if(!$name)
{
$name = $url;