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. 8
      main/inc/lib/link.lib.php

@ -45,12 +45,16 @@ function addlinkcategory($type) {
if ($_POST['onhomepage'] == '') {
$onhomepage = 0;
$target = '_self'; // Default target.
} 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);
$description = trim($description);

Loading…
Cancel
Save