软件
ptcms修复https访问问题
mtsym 发表于2018-12-21 浏览5711 评论0
一朋友用了这个系统,说https链接无法访问,我看了一下源码,发现是ptcms/core/filter.php下的regex函数导致的,正则表达式没有对https做处理,找到行
'url' =˃ '/^http:\/\/[a-zA-Z0-9]+\.[a-zA-Z0-9]+[\/=\?%\-&_~`@\[\]\':+!]*([^\"\"])*$/'
加上https就可以了
'url' =˃ '/^http|https:\/\/[a-zA-<!--autointro-->