Start using sanitized &My::Web::escapeHTML instead of: &CGI::escapeHTML
[www.jankratochvil.net.git] / resume / ResumeJanKratochvil.pm
index b2336d7..b1cbcfd 100644 (file)
@@ -25,7 +25,6 @@ use strict;
 use warnings;
 
 use My::Web;
-require CGI;
 require Crypt::Rot13;
 Wrequire 'project::Lib';
 
@@ -57,11 +56,9 @@ sub handler
 my $W=My::Web->init(
                "title"=>"Resume",
                "section"=>"Resume",
-               "heading"=>undef(),
-               "footer"=>undef(),
-               "head"=><<"HERE",
-<link rel="stylesheet" type="text/css" href="@{[ uri_escaped(path_web "/resume/ResumeJanKratochvil.css") ]}" />
-HERE
+               "heading"=>0,
+               "footer"=>0,
+               "css_push"=>"/resume/ResumeJanKratochvil.css",
                "args_check"=>{
                                "referees"=>'', # Do not bother with '^(?:(?i)referees)?$'
                                "print"=>'^(?:print)?$',
@@ -144,7 +141,7 @@ my $uClinux=a_href 'http://www.uclinux.com/','uClinux';
 my $now=(localtime())[5]+1900;
 
 print <<"HERE";
-<table width="100%" style="border-style: none;"><tr><td align="center"><table>
+<table border="0" class="margin-center">
 HERE
 my @contact=__PACKAGE__->Contact();
 while (@contact) {
@@ -158,7 +155,7 @@ while (@contact) {
 HERE
        }
 print <<"HERE";
-</table></td></tr></table>
+</table>
 
 @{[ vskip "3ex" ]}
 
@@ -292,7 +289,7 @@ if (lc($W->{"args"}{"referees"}) ne "referees") {
                        <hr />
                        <form method="post" action="@{[ uri_escaped(path_web $W->{"resume_url"}) ]}">
                                <p>Enter the word '<b>referees</b>' (without quotes) to disclose e-mail addresses:<br />
-                               <input type="text" size="15" name="referees" value="@{[ CGI::escapeHTML($W->{"args"}{"referees"}) ]}" /><br />
+                               <input type="text" size="15" name="referees" value="@{[ escapeHTML($W->{"args"}{"referees"}) ]}" /><br />
                                <input type="submit" value="Submit" /><br />
                                (spambot protection)</p>
                        </form>