'×' 乘法符号替换 URL 中的 &timestamp [英] '×' multiplication symbol replaces &timestamp in URL

查看:25
本文介绍了'×' 乘法符号替换 URL 中的 &timestamp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的链接有问题,该链接是从 GoCardless PHP 库生成的.我正在使用 WordPress,我发现文件 /wp-includes/formatting.php 有一个函数 "ent2ncr",它替换了 "&times" 带有乘号 "&#215" 并且以某种神奇的方式,这个函数(可能是我错了)改变了 ...&timestamp=2017-08-24T12%3A26%3A34Z...×tamp=2017-08-24T12%3A26%3A34Z

I have a problem with a link, which generates from GoCardless PHP library. I'm using WordPress and I've found that the file /wp-includes/formatting.php have a function "ent2ncr", which replaces "&times" with multiplication sign "&#215" and in some magical way, this function ( may be I'm wrong ) changes ...&timestamp=2017-08-24T12%3A26%3A34Z to ...×tamp=2017-08-24T12%3A26%3A34Z

我无法更改此参数的名称,因为 GoCarldess API 需要它.

I can't change a name of this parameter, because it is required by GoCarldess API.

附言我试图在 formatting.php 中注释这一行,但没有任何变化.

P.S. I've tried to comment this line in formatting.php, but nothing changes.

推荐答案

Whats发生的是 &times 的 &timestamp 部分被翻译成 x结果你最终得到了 xtamp

Whats happening is the &times part of &timestamp is being translated as x as a result you end up with xtamp

尝试使用 &

说编码不转义

这篇关于'×' 乘法符号替换 URL 中的 &timestamp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆