Skip to content

Commit e637b75

Browse files
committed
Fix stored xss when user import from zone file or dns template editor
1 parent 5008d8c commit e637b75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

interface/web/dns/dns_srv_edit.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ function onShowEnd() {
5151
// Split the 3 parts of the SRV Record apart
5252
$split = explode(' ', $this->dataRecord['data']);
5353

54-
$app->tpl->setVar('weight', $split[0]);
55-
$app->tpl->setVar('port', $split[1]);
56-
$app->tpl->setVar('target', $split[2]);
54+
$app->tpl->setVar('weight', $split[0], true);
55+
$app->tpl->setVar('port', $split[1], true);
56+
$app->tpl->setVar('target', $split[2], true);
5757

5858
parent::onShowEnd();
5959
}

0 commit comments

Comments
 (0)