Fix warning on redirection of links without a scheme
This commit is contained in:
@ -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
|
||||
|
9
chat.php
9
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 "<p>$I[redirectto] <a href=\"$match[0]"."$escaped\">$match[0]"."$escaped</a>.</p>";
|
||||
echo "<p>$I[redirectto] <a href=\"$match[0]$escaped\">$match[0]$escaped</a>.</p>";
|
||||
}else{
|
||||
print_start('redirect');
|
||||
echo "<p>$I[nonhttp] <a href=\"$match[0]"."$escaped\">$match[0]"."$escaped</a>.</p>";
|
||||
if(!isSet($match[0])){
|
||||
$match[0]='';
|
||||
}
|
||||
echo "<p>$I[nonhttp] <a href=\"$match[0]$escaped\">$match[0]$escaped</a>.</p>";
|
||||
echo "<p>$I[httpredir] <a href=\"http://$escaped\">http://$escaped</a>.</p>";
|
||||
}
|
||||
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
|
||||
|
Reference in New Issue
Block a user