Skip to content

Commit

Permalink
fix encodeURI into template
Browse files Browse the repository at this point in the history
  • Loading branch information
u5surf committed Dec 31, 2024
1 parent 724b34d commit dea5963
Show file tree
Hide file tree
Showing 2 changed files with 549 additions and 547 deletions.
6 changes: 3 additions & 3 deletions share/status.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ <h1>
? '<img class="flag flag-{}" />'.format(name.toLowerCase())
: '';

s = '{}{}'.format(aHe('th', '{}{}'.format(flag, name)),
s = '{}{}'.format(aHe('th', encodeURI('{}{}'.format(flag, name))),
aHe('td', [(zone.requestCounter + zone.overCounts['maxIntegerSize'] * zone.overCounts['requestCounter']),
aPs.getValue('{}.{}'.format(uniq, 'requestCounter'), zone.requestCounter), mTh(zone.requestMsec)
]));
Expand Down Expand Up @@ -681,7 +681,7 @@ <h1>

clas = (n++ % 2) ? 'odd' : '';

s = '{}{}'.format(aHe('th', peer.server),
s = '{}{}'.format(aHe('th', encodeURI(peer.server)),
aHe('td', [sTh(peer.backup, peer.down), mTh(peer.responseMsec),
peer.weight, peer.maxFails, peer.failTimeout,
(peer.requestCounter + peer.overCounts['maxIntegerSize'] * peer.overCounts['requestCounter']),
Expand Down Expand Up @@ -722,7 +722,7 @@ <h1>

clas = (n++ % 2) ? 'odd' : '';

s = '{}{}'.format(aHe('th', name),
s = '{}{}'.format(aHe('th', encodeURI(name)),
aHe('td', [bTh(zone.maxSize),
bTh(zone.usedSize),
bTh(zone.outBytes + zone.overCounts['maxIntegerSize'] * zone.overCounts['outBytes']),
Expand Down
Loading

0 comments on commit dea5963

Please sign in to comment.