-<(common.inc.plp)><:
+<(../common.inc.plp)><:
+s{\Aedit(/|\z)}{} for $Request // ();
Html({
title => 'words cheat sheet admin',
version => '1.0',
nocache => 1,
raw => <<'EOT',
-<link rel="stylesheet" type="text/css" media="all" href="/editor.css" />
-<script src="/writer.js"></script>
+<link rel="stylesheet" type="text/css" media="all" href="/word/editor.css" />
+<script src="/word/editor.js"></script>
EOT
});
} or Abort('Database error', 501, $@);
my $user = eval {
- my $rootpath = ($ENV{REQUEST_URI} // '/writer') =~ s{(?<!^)/.+}{}r;
+ my $rootpath = '/word/edit';
if (defined $post{username}) {
$cookie{login} = EncodeURI(join ':', @post{qw( username pass )});
}