Update common.php
the ["returnhead"]["Location"] of curl return value seems not existed, change to ["returnhead"]["location"]pull/686/head
parent
1d4a5817fc
commit
238befc7ff
|
@ -2313,7 +2313,7 @@ function render_list($path = '', $files = [])
|
||||||
$tmp = curl('GET', $file_path, '', [], 1);
|
$tmp = curl('GET', $file_path, '', [], 1);
|
||||||
if ($tmp['stat']==302) {
|
if ($tmp['stat']==302) {
|
||||||
error_log1(json_encode($tmp));
|
error_log1(json_encode($tmp));
|
||||||
$tmp = curl('GET', $tmp["returnhead"]["Location"]);
|
$tmp = curl('GET', $tmp["returnhead"]["location"]);
|
||||||
}
|
}
|
||||||
if (!!$tmp['body']) $html = $tmp['body'];
|
if (!!$tmp['body']) $html = $tmp['body'];
|
||||||
savecache('customTheme', $html, '', 9999);
|
savecache('customTheme', $html, '', 9999);
|
||||||
|
|
Loading…
Reference in New Issue