'×' 乘法符号替换 URL 中的 &timestamp [英] '×' multiplication symbol replaces &timestamp in URL
问题描述
我的链接有问题,该链接是从 GoCardless PHP 库生成的.我正在使用 WordPress,我发现文件 /wp-includes/formatting.php
有一个函数 "ent2ncr"
,它替换了 "×"
带有乘号 "×"
并且以某种神奇的方式,这个函数(可能是我错了)改变了 ...×tamp=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 "×"
with multiplication sign "×"
and in some magical way, this function ( may be I'm wrong ) changes ...×tamp=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发生的是 × 的 ×tamp 部分被翻译成 x
结果你最终得到了 xtamp
Whats happening is the × part of ×tamp is being translated as x
as a result you end up with xtamp
尝试使用 &
说编码不转义
这篇关于'×' 乘法符号替换 URL 中的 &timestamp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!