mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
fix escaping custom css/js
This commit is contained in:
parent
fbee383d5f
commit
62b21528ee
@ -143,8 +143,8 @@
|
||||
<div class="box-body">
|
||||
<?php
|
||||
if (isset($_POST['custom_css']) && isset($_POST['custom_js'])) {
|
||||
Option::set('custom_css', Utils::convertString($_POST['custom_css']));
|
||||
Option::set('custom_js', Utils::convertString($_POST['custom_js']));
|
||||
Option::set('custom_css', $_POST['custom_css']);
|
||||
Option::set('custom_js', $_POST['custom_js']);
|
||||
echo '<div class="callout callout-success">设置已保存。</div>';
|
||||
} else {
|
||||
echo '<div class="callout callout-info">内容将会被追加至每个页面的 <style> 和 <script> 标签中</div>';
|
||||
|
Loading…
Reference in New Issue
Block a user