Index: ftplogin/ftp_upload.php =================================================================== --- ftplogin/ftp_upload.php (Revision 1) +++ ftplogin/ftp_upload.php (Revision 3) @@ -19,7 +19,7 @@ if( ! $ftp->ftp_login( $ftp_user, $ftp_pass ) ){ $ftp->ftp_quit(); - echo "User: ".htmlspecialchars( $ftp_user ); + echo "User: ".htmlspecialchars( $ftp_user, null, 'ISO-8859-15' ); die("Login failed\n"); } @@ -61,8 +61,8 @@ if($ftp->ftp_chdir($path)) { $data = new SetOfRowsData(); - $data->AppendHidden( new TextDataField( htmlspecialchars($path), "upld" ) ); - $data->AppendHidden( new TextDataField( htmlspecialchars($path), "path" ) ); + $data->AppendHidden( new TextDataField( htmlspecialchars($path, null, 'ISO-8859-15'), "upld" ) ); + $data->AppendHidden( new TextDataField( htmlspecialchars($path, null, 'ISO-8859-15'), "path" ) ); $uploadfile_field = new FileDataField( "filename" ); $uploadfile_field->SetColSpan("2"); @@ -70,7 +70,7 @@ $filename_field = new TextDataField( "", "new_name" ); $filename_field->SetColSpan("2"); $data->AppendRow( new HTMLDataField( $lang_text["wftp_upload_filename"] ), $filename_field ); - $path_field = new TextDataField( htmlspecialchars($path), "in_dir" ); + $path_field = new TextDataField( htmlspecialchars($path, null, 'ISO-8859-15'), "in_dir" ); $path_field->SetColSpan("2"); $data->AppendRow( new HTMLDataField( $lang_text["wftp_intopath"] ), $path_field ); $force_field = new YesNoDataField( array("1"=>""), array("0"=>""), "0", "force" ); @@ -94,4 +94,4 @@ } $ftp->ftp_quit(); -?> \ No newline at end of file +?> Index: ftplogin/ftp_newdir.php =================================================================== --- ftplogin/ftp_newdir.php (Revision 1) +++ ftplogin/ftp_newdir.php (Revision 3) @@ -17,7 +17,7 @@ if (!$ftp->ftp_login($ftp_user, $ftp_pass)) { $ftp->ftp_quit(); - echo "User: ".htmlspecialchars( $ftp_user ); + echo "User: ".htmlspecialchars( $ftp_user, null, 'ISO-8859-15' ); die( "Login failed\n" ); } @@ -59,12 +59,12 @@ if($ftp->ftp_chdir($path)) { $data = new SetOfRowsData(); - $data->AppendHidden( new TextDataField( htmlspecialchars($path), "path" ) ); + $data->AppendHidden( new TextDataField( htmlspecialchars($path, null, 'ISO-8859-15'), "path" ) ); $dirname_field = new TextDataField( "", "mkdir" ); $dirname_field->SetAttributes(array("size"=>"30")); $dirname_field->SetColSpan("2"); $data->AppendRow( new HTMLDataField( $lang_text["wftp_mkdir_newdir"] ), $dirname_field ); - $path_field = new TextDataField( htmlspecialchars($path), "in_dir" ); + $path_field = new TextDataField( htmlspecialchars($path, null, 'ISO-8859-15'), "in_dir" ); $path_field->SetAttributes(array("size"=>"30")); $path_field->SetColSpan("2"); $data->AppendRow( new HTMLDataField( $lang_text["wftp_intopath"] ), $path_field ); Index: ftplogin/toolbar.php =================================================================== --- ftplogin/toolbar.php (Revision 1) +++ ftplogin/toolbar.php (Revision 3) @@ -23,7 +23,7 @@
+ |