fix: an encrypt form in guest upload folder

pull/62/head
qkqpttgf 2020-05-08 16:18:28 +08:00 committed by GitHub
parent d0f7eefe2e
commit 4fb6007e55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -1854,6 +1854,12 @@ function render_list($path = '', $files = '')
$tmp = splitfirst($tmp[1], '<!--IsFolderEnd-->'); $tmp = splitfirst($tmp[1], '<!--IsFolderEnd-->');
$html .= $tmp[1]; $html .= $tmp[1];
} }
while (strpos($html, '<!--EncryptedStart-->')) {
$tmp = splitfirst($html, '<!--EncryptedStart-->');
$html = $tmp[0];
$tmp = splitfirst($tmp[1], '<!--EncryptedEnd-->');
$html .= $tmp[1];
}
while (strpos($html, '<!--GuestUploadStart-->')) { while (strpos($html, '<!--GuestUploadStart-->')) {
$html = str_replace('<!--GuestUploadStart-->', '', $html); $html = str_replace('<!--GuestUploadStart-->', '', $html);
$html = str_replace('<!--GuestUploadEnd-->', '', $html); $html = str_replace('<!--GuestUploadEnd-->', '', $html);