Hacks4wbb by HFW™ (https://hacks4wbb.de/index.php)
- WBB Bereich (https://hacks4wbb.de/board.php?boardid=20)
--- wbb2.3.6 Start (https://hacks4wbb.de/board.php?boardid=441)
---- Dokumentationen|Codeschnipsel (https://hacks4wbb.de/board.php?boardid=445)
----- [Codeschnipsel] Umlautproblem XundY Shoutbox (https://hacks4wbb.de/thread.php?threadid=32231)


Geschrieben von omar am 10.03.2023 um 03:27:

  Umlautproblem XundY Shoutbox

Öffne xy_megashoutbox.php und suche (ist 2 x vorhanden):

php:
1:
$comment htmlspecialchars($_POST['comment'], ENT_NOQUOTES);


Ersetze es mit (auch 2 Mal):

php:
1:
2:
3:
4:
5:
6:
7:
//$comment = htmlspecialchars($_POST['comment'], ENT_NOQUOTES);
    
         $comment=utf8_encode($comment);
     $comment=htmlspecialchars($comment);
     $umlaute = array("ä","ö","ü","Ä","Ö","Ãœ","ß");
  $doppelbuchstaben = array("ä","ö","ü","Ä","Ö","Ãœ","ss");
  $comment str_replace($umlaute,$doppelbuchstaben,$comment);


suche weiter:
php:
1:
$popcomment=htmlspecialchars($pop['comment'],ENT_QUOTES);


Ersetze es mit:
php:
1:
2:
3:
4:
5:
6:
7:
//$popcomment=htmlspecialchars($pop['comment'],ENT_QUOTES);
   
        $comment=utf8_encode($comment);
     $comment=htmlspecialchars($comment);
     $umlaute = array("ä","ö","ü","Ä","Ö","Ãœ","ß");
  $doppelbuchstaben = array("ä","ö","ü","Ä","Ö","Ãœ","ss");
  $comment str_replace($umlaute,$doppelbuchstaben,$comment);


suche weiter:
php:
1:
$message=addslashes(htmlspecialchars($messageENT_NOQUOTES));


ersetze es mit:
php:
1:
2:
3:
4:
5:
6:
7:
//$message=addslashes(htmlspecialchars($message, ENT_NOQUOTES));
            
                 $message=utf8_encode($message);
     $message=htmlspecialchars($message);
     $umlaute = array("ä","ö","ü","Ä","Ö","Ãœ","ß");
  $doppelbuchstaben = array("ä","ö","ü","Ä","Ö","Ãœ","ss");
  $message str_replace($umlaute,$doppelbuchstaben,$message);


FERTIG


Forensoftware: Burning Board 2.3.6, entwickelt von WoltLab GmbH