【发布时间】:2018-12-04 07:37:34
【问题描述】:
我在 php 脚本中使用 $_SERVER['HTTP_HOST'] 和 $_SERVER['REQUEST_URI'] 来获取页面的 url,但 envato 主题检查插件显示警告。
WARNING: Found $_SERVER in the file framework/class-easy.php. PHP Global Variable found. Ensure the context is safe and reliable.
Line 253: return ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
【问题讨论】:
标签: php wordpress http plugins server