Skip to content

Commit d964ef0

Browse files
authored
Merge pull request hestiacp#1792 from jaapmarcus/fix/prefix_dns_records_html
Fix issue where domain is not displayed in html
2 parents 4e9aa62 + 2832462 commit d964ef0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

web/templates/pages/add_dns_rec.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,5 +149,5 @@
149149
</div>
150150

151151
<script>
152-
GLOBAL.DNS_REC_PREFIX = <?php json_encode($_GET['domain']) ?>;
152+
GLOBAL.DNS_REC_PREFIX = "<?=htmlentities($_GET['domain']); ?>";
153153
</script>

web/templates/pages/add_web.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,6 @@
549549
</div>
550550

551551
<script>
552-
GLOBAL.FTP_USER_PREFIX = <?php json_encode($user.'_') ?>;
553-
GLOBAL.FTP_USER_PREPATH = <?= json_encode($v_ftp_user_prepath) ?>;
552+
GLOBAL.FTP_USER_PREFIX = "<?=htmlentities($user.'_');?>";
553+
GLOBAL.FTP_USER_PREPATH = "<?=htmlentities($v_ftp_user_prepath);?>";
554554
</script>

web/templates/pages/edit_dns_rec.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,5 +154,5 @@
154154
</form>
155155
</div>
156156
<script>
157-
GLOBAL.DNS_REC_PREFIX = <?php json_encode($_GET['domain']) ?>;
157+
GLOBAL.DNS_REC_PREFIX = "<?=htmlentities($_GET['domain']); ?>";
158158
</script>

0 commit comments

Comments
 (0)