Requests组件bug一枚

kenw2004
kenw2004 This guy is lazy,Introduction has not been set

5 People liked this article · 3103 views

system\Services/Requests.php 判断网址是否需要绝对化的规则,兼容性可以更好 原判断规则为: if (strpos($location, '/') === 0) { 此判断仅对跳转目标为 /index.html 有用,必须存在 / 号,如果目标跳的是 index.html ,Requests 则会抛出异常。 修改方案: if (!preg_match('/^https?:\/\//i', $location)) {

Published on 2017-11-29 17:05

Disclaimers:

This document is written by kenw2004 Original published on WeCenter ,The copyright belongs to the author。

Log in,More exciting content waiting for you to find,Contribute wonderful answers,Participate in comment interaction

go Sign in! No accountgoregister

kenw2004
2017-12-31 15:31
官方更不更新,不妨碍继续使用这个程序。还是挺好用的
思路well
2017-12-29 10:53
官方已经死了,楼主你就接受更新版本吧~
amao
2017-12-16 08:48
不错,,支持,够细心,,,