diff --git a/CHANGELOG b/CHANGELOG index 37f2a0b..81cf44b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +Version 1.16.3 - Apr. 14, 2016 +Fix warning on redirection of links without a scheme + Version 1.16.2 - Apr. 14, 2016 Add CSS classes and move more css to the database Allow extreme captcha to be solved in both directions diff --git a/chat.php b/chat.php index 8f3ed90..dd79df0 100644 --- a/chat.php +++ b/chat.php @@ -339,10 +339,13 @@ function send_redirect($url){ $escaped=htmlspecialchars($url); if(isSet($match[1]) && ($match[1]==='http' || $match[1]==='https')){ print_start('redirect', 0, $match[0].$escaped); - echo "
$I[redirectto] $match[0]"."$escaped.
"; + echo "$I[redirectto] $match[0]$escaped.
"; }else{ print_start('redirect'); - echo "$I[nonhttp] $match[0]"."$escaped.
"; + if(!isSet($match[0])){ + $match[0]=''; + } + echo "$I[nonhttp] $match[0]$escaped.
"; echo "$I[httpredir] http://$escaped.
"; } print_end(); @@ -3487,7 +3490,7 @@ function load_lang(){ } function load_config(){ - define('VERSION', '1.16.2'); // Script version + define('VERSION', '1.16.3'); // Script version define('DBVERSION', 16); // Database version define('MSGENCRYPTED', false); // Store messages encrypted in the database to prevent other database users from reading them - true/false - visit the setup page after editing! define('ENCRYPTKEY', 'MY_KEY'); // Encryption key for messages