Fixing bug when creating a new link with a different targer see BT#4019

skala
Julio Montoya 13 years ago
parent 0d6a3048a7
commit 0a77ad956e
  1. 10
      main/inc/lib/link.lib.php

@ -44,12 +44,16 @@ function addlinkcategory($type) {
$selectcategory = Security :: remove_XSS($_POST['selectcategory']);
if ($_POST['onhomepage'] == '') {
$onhomepage = 0;
$target = '_self'; // Default target.
$onhomepage = 0;
} else {
$onhomepage = Security :: remove_XSS($_POST['onhomepage']);
$target = Security :: remove_XSS($_POST['target_link']);
}
if (empty($_POST['target_link'])) {
$target = '_self'; // Default target.
} else {
$target = Security :: remove_XSS($_POST['target_link']);
}
$urllink = trim($urllink);
$title = trim($title);

Loading…
Cancel
Save