Changeset 203

Show
Ignore:
Timestamp:
2009-01-17 09:23:11 (3 years ago)
Author:
hannes
Message:

installer & admin panel: fix encoding problems (ticket #93)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/includes/input.php

    r200 r203  
    384384 
    385385$INPUT['newsqlpassword'] = $_POST['newsqlpassword']; 
    386 if (preg_match('/^[a-zA-Z0-9\-_]*$/', $INPUT['newsqlpassword']) != 1) { 
     386if (check_legal($INPUT['newsqlpassword']) === FALSE) { 
    387387    die($LANG['error_input']); 
    388388} 
  • trunk/install.php

    r192 r203  
    4343// input validation 
    4444require_once('includes/input.php'); 
     45 
     46// start output in order to set correct character encoding 
     47header('Content-Type: text/html; charset=' . $SETTINGS['encoding']); 
    4548 
    4649// default page