No link validation in link tool - CT#524

skala
Guillaume Viguier 16 years ago
parent 61fd046e1e
commit dc23667b64
  1. 2
      main/link/linkfunctions.php

@ -53,7 +53,7 @@ function addlinkcategory($type) {
$description = trim($description); $description = trim($description);
// If title is empty, an error occurs // If title is empty, an error occurs
if (empty($urllink) || $urllink == 'http://') { if (filter_var($urllink, FILTER_VALIDATE_URL) == false) {
$msgErr = get_lang('GiveURL'); $msgErr = get_lang('GiveURL');
Display::display_error_message(get_lang('GiveURL')); Display::display_error_message(get_lang('GiveURL'));
$ok = false; $ok = false;

Loading…
Cancel
Save