1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 21:27:25 +02:00

Bugtracker #5135 next try - off-site banner links

This commit is contained in:
e107steved
2011-02-27 14:50:18 +00:00
parent 640f0d3683
commit f224ed86e5

View File

@@ -108,22 +108,6 @@ if ($_POST['createbanner'] || $_POST['updatebanner'])
$banImage = $e107->tp->toDB($_POST['banner_image']);
$banURL = $e107->tp->toDB($_POST['click_url']);
if (strpos($banURL, '://' ) !== FALSE)
{
$clickBits = explode('://', $banURL, 2);
if (($clickBits[0] == 'http') || ($clickBits[0] == 'https'))
{
$banURL = $clickBits[0].'://'.rawurlencode($clickBits[1]);
}
else
{
$banURL = rawurlencode($banURL);
}
}
else
{
$banURL = rawurlencode($banURL);
}
if ($_POST['banner_pages'])
{ // Section redundant?