前沿
在知识星球里看到这么一个提问
<?php
$content = file_get_contents($_POST['url']);
$json=$json_decode($content,1);
$data=$json['data'];
echo json_encode($data);
这里是任意文件读写,但是被json格式包裹了,在评论区找到答案利用 filters 构造前后缀进行任意文件读写
在知识星球里看到这么一个提问
<?php
$content = file_get_contents($_POST['url']);
$json=$json_decode($content,1);
$data=$json['data'];
echo json_encode($data);
这里是任意文件读写,但是被json格式包裹了,在评论区找到答案利用 filters 构造前后缀进行任意文件读写