forked from XiaoLFeng/XF_Index
添加友链漏洞补丁
This commit is contained in:
parent
797ab28f63
commit
5d09afaa25
|
@ -48,7 +48,7 @@ public function apiCustomAdd(Request $request): JsonResponse
|
||||||
'userRss' => 'string|regex:#[a-zA-z]+://[^\s]*#',
|
'userRss' => 'string|regex:#[a-zA-z]+://[^\s]*#',
|
||||||
'userLocation' => 'required|int',
|
'userLocation' => 'required|int',
|
||||||
'userSelColor' => 'required|int',
|
'userSelColor' => 'required|int',
|
||||||
'userRemark' => 'required|string',
|
'userRemark' => 'string',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// 检查发现错误
|
// 检查发现错误
|
||||||
|
|
|
@ -296,8 +296,10 @@ function ajax() {
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (returnData) {
|
success: function (returnData) {
|
||||||
if (returnData.output === "Success") {
|
if (returnData.output === "Success") {
|
||||||
Toast.toggle('友链申请成功','<i class="bi bi-check-circle text-green-500"></i>');
|
Toast.toggle('友链申请成功,即将跳转','<i class="bi bi-check-circle text-green-500"></i>');
|
||||||
location.href = '{{ route('home') }}'
|
setTimeout(function () {
|
||||||
|
location.href = '{{ route('function.link') }}';
|
||||||
|
},3000);
|
||||||
} else {
|
} else {
|
||||||
Toast('未知错误','<i class="bi bi-x-circle text-red-500"></i>');
|
Toast('未知错误','<i class="bi bi-x-circle text-red-500"></i>');
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
</head>
|
</head>
|
||||||
<table align="center" border="0" cellpadding="0" cellspacing="0" width="600" style="border-collapse: collapse;border: 1px solid #cccccc;box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175)">
|
<table align="center" border="0" cellpadding="0" cellspacing="0" width="600" style="border-collapse: collapse;border: 1px solid #cccccc;box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175)">
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center" bgcolor="#70bbd9" style="padding: 30px 0 30px 0; font-size: 30px;">$G_TitleName</td>
|
<td align="center" bgcolor="#70bbd9" style="padding: 30px 0 30px 0; font-size: 30px;">{{ env('APP_NAME') }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
<td style="padding: 0px 5px 5px 0px;color: #000000; font-family: Arial, sans-serif; font-size: 16px;">
|
<td style="padding: 0px 5px 5px 0px;color: #000000; font-family: Arial, sans-serif; font-size: 16px;">
|
||||||
您好 <a style="text-decoration: none;color: #198754;" href="{{ $userUrl }}"><b>{{ $userBlog }}</b></a> 的站长:<b>{{ $userEmail }}</b><br/>
|
您好 <a style="text-decoration: none;color: #198754;" href="{{ $userUrl }}"><b>{{ $userBlog }}</b></a> 的站长:<b>{{ $userEmail }}</b><br/>
|
||||||
您在本博客(<a style="text-decoration: none;color: #198754;" href="{{ env('APP_BLOG') }}">{{ env('APP_NAME') }}</a>)申请了友链<br/>
|
您在本博客(<a style="text-decoration: none;color: #198754;" href="{{ env('APP_BLOG') }}">{{ env('APP_NAME') }}</a>)申请了友链<br/>
|
||||||
<hr style="padding: 0px 5px 5px 0px;"/>
|
<hr/>
|
||||||
请在确认一次您的信息是否正确:<br/>
|
请在确认一次您的信息是否正确:<br/>
|
||||||
<ul>
|
<ul>
|
||||||
<li>博主邮箱:{{ $userEmail }}</li>
|
<li>博主邮箱:{{ $userEmail }}</li>
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
<li>图片地址:{{ $userIcon }}</li>
|
<li>图片地址:{{ $userIcon }}</li>
|
||||||
<li>贵站介绍:{{ $userDescription }}</li>
|
<li>贵站介绍:{{ $userDescription }}</li>
|
||||||
<li>备注内容:{{ $userRemark }}</li>
|
<li>备注内容:{{ $userRemark }}</li>
|
||||||
<li>RSS地址:{{ $userRSS }}</li>
|
@if(!empty($checkRssJudge))<li>RSS地址:{{ $userRSS }}</li> @endif
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user