X-Git-Url: http://git.jankratochvil.net/?p=www.jankratochvil.net.git;a=blobdiff_plain;f=SendMsg.pl;h=1f7b4fba8d3db14a97ab7db4aecdacaa56e1d504;hp=08ab08ec40b543a9e9cc69d6a8ed8f62b07ddfbf;hb=refs%2Fheads%2Fmodperl;hpb=1a388de21de28bbf64a07977ce653bfe30e542ba diff --git a/SendMsg.pl b/SendMsg.pl index 08ab08e..1f7b4fb 100755 --- a/SendMsg.pl +++ b/SendMsg.pl @@ -28,15 +28,15 @@ use warnings; BEGIN{ open F,"Makefile"; our $top_dir=pop @{[split /\s/,(grep /^top_srcdir/,)[0]]}; eval "use lib '$top_dir'"; close F; } use My::Web; use Apache::Constants qw(HTTP_NO_CONTENT); -require "Mail::Send"; +require Mail::Send; my $W=My::Web->init( "__PACKAGE__"=>__PACKAGE__, "header_only"=>1, "args_check"=>{ - "msgscript"=>'.*', # If 'text/javascript' is supported. - "msghtml"=>'.*', # No 'text/javascript' available. + "msgscript"=>'', # If 'text/javascript' is supported. + "msghtml"=>'', # No 'text/javascript' available. }, ); my $msg=$W->{"args"}{"msghtml"} || $W->{"args"}{"msgscript"};