chiark
/
gitweb
/
~mdw
/
tgal
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
27ad11a
)
mason/dhandler: Apply both URL and HTML escaping to links.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 17 Jun 2023 14:30:02 +0000
(15:30 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 17 Jun 2023 14:30:02 +0000
(15:30 +0100)
mason/dhandler
patch
|
blob
|
blame
|
history
diff --git
a/mason/dhandler
b/mason/dhandler
index 44ab7ed45df89339c03e15315e346f9bfac8d31c..f3a8cfcf71a359a148f5ea214287594ddb647138 100755
(executable)
--- a/
mason/dhandler
+++ b/
mason/dhandler
@@
-35,8
+35,8
@@
of the GNU Affero General Public License.
<html>
<head>
<meta name=viewport content="width=device-width initial-scale=1.0">
<html>
<head>
<meta name=viewport content="width=device-width initial-scale=1.0">
- <script type="text/javascript" src="<% "$STATICURL/tgal.js" |u %>" defer></script>
- <link rel=stylesheet type=text/css href="<% "$STATICURL/tgal.css" |u %>">
+ <script type="text/javascript" src="<% "$STATICURL/tgal.js" |
h
u %>" defer></script>
+ <link rel=stylesheet type=text/css href="<% "$STATICURL/tgal.css" |
h
u %>">
<% $head %>\
<title><% $title %></title>
</head>
<% $head %>\
<title><% $title %></title>
</head>
@@
-215,13
+215,13
@@
Failed to find ‘<% $path |h %>’.
%
<div class=viewnav>
% if ($link{prev}) {
%
<div class=viewnav>
% if ($link{prev}) {
- <div class=prev><a class=prev href="<% "$pre/$link{prev}" |u %>">‹</a></div>
+ <div class=prev><a class=prev href="<% "$pre/$link{prev}" |
h
u %>">‹</a></div>
% }
<a class=view href="<% $url |h %>">
<img src="<% $vw |h %>">
</a>
% if ($link{next}) {
% }
<a class=view href="<% $url |h %>">
<img src="<% $vw |h %>">
</a>
% if ($link{next}) {
- <div class=next><a class=next href="<% "$pre/$link{next}" |u %>">›</a></div>
+ <div class=next><a class=next href="<% "$pre/$link{next}" |
h
u %>">›</a></div>
% }
</div>
%
% }
</div>
%
@@
-254,11
+254,11
@@
Failed to find ‘<% $path |h %>’.
% if (!@p) {
[top]
% } else {
% if (!@p) {
[top]
% } else {
-<a href="<% $SCRIPTURL |u %>/">[top]</a> / \
+<a href="<% $SCRIPTURL |
h
u %>/">[top]</a> / \
% STEP: for my $p (@p) {
% if (defined $prev) {
% $pp .= "$prev/";
% STEP: for my $p (@p) {
% if (defined $prev) {
% $pp .= "$prev/";
-<a href="<% join_paths($SCRIPTURL, $pp) |u %>/">\
+<a href="<% join_paths($SCRIPTURL, $pp) |
h
u %>/">\
<% $prev %></a> / \
% }
% $prev = $p;
<% $prev %></a> / \
% }
% $prev = $p;
@@
-309,7
+309,7
@@
Failed to find ‘<% $path |h %>’.
</%perl>
<div class=footer>
<div class=footitem>
</%perl>
<div class=footer>
<div class=footitem>
- <a href="https://www.gnu.org/licenses/agpl-3.0.en.html"><img class=licence src="<% "$STATICURL/agpl.png" |u %>"></a>
+ <a href="https://www.gnu.org/licenses/agpl-3.0.en.html"><img class=licence src="<% "$STATICURL/agpl.png" |
h
u %>"></a>
Trivial Gallery, copyright © 2021 Mark Wooding.
Free software: you can modify it and/or redistribute it under the
terms of the
Trivial Gallery, copyright © 2021 Mark Wooding.
Free software: you can modify it and/or redistribute it under the
terms of the