Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1135 Webmin and Perl with (UTF) encoding support

1.090
closed
Jamie Cameron
None
5
2003-05-20
2003-05-19
Anonymous
No

Version: 1.09
OS: Mandrake Linux 9.1 (But could affect any system).

Browsers sometimes fails with the error message
Error - Content Type header missing

When trying to send post data to Webmin (minserv.pl)

It appears to be related to that fact the newer perl
versions do character set encoding on standard
input/output and file IO.

Solution:
Adding the following lines to the start of minserv.pl
fixes the problem.

eval "no encoding";
$ENV{'PERLIO'}=":raw";

This disables perls ability to do character set
conversions.

Discussion

  • Jamie Cameron
    Jamie Cameron
    2003-05-20

    • assigned_to: nobody --> jcameron
    • status: open --> closed
     
  • Jamie Cameron
    Jamie Cameron
    2003-05-20

    Logged In: YES
    user_id=129364

    Thanks for the information - I will definately do this.
    One question though - do you know if putting export
    PERLIO=:raw in /etc/webmin/start would have the same effect?

     
  • Logged In: NO

    Hi,
    I suspect that using

    PERLIO=:raw
    export PERLIO

    in the startup script should wor okay.
    I will test and see..

     
  • Jamie Cameron
    Jamie Cameron
    2003-09-06

    Logged In: YES
    user_id=129364

    This change has had to be backed up from webmin 1.110, as it
    causes problems with IE clients connecting to perl 5.8
    systems - not totally sure why!