Bug after php update

huangapple go评论47阅读模式
英文:

Bug after php update

问题

我在升级我的PHP版本后,在我的应用程序上遇到了一个错误。PHP 8.0版本没问题,但如果我尝试升级到8.1或8.2,我的应用程序会出现一个我不理解的错误。

TinyButStrong字段中的错误 [var.menu...]: 带有值 '[val]' 的参数脚本不能被调用,因为当前的TBS设置不允许调用脚本。可以使用参数 'noerr' 来取消此消息。

我的应用程序在标识页面上出现了问题。我使用了最新的TinyButStrong版本。我尝试了beta版本,但没有改变。

如果您有解决方案吗?

谢谢。

英文:

I have a bug on my application after upgrading my php version. The 8.0 php version is ok but if I try to update on 8.1 or 8.2 my appication block with an error I don't understand.

TinyButStrong Error in field [var.menu...]: parameter script with value '[val]' cannot be called because the current TBS settings do not allow to call scripts. This message can be cancelled using parameter 'noerr'.

My application block on the identification page. I use the last tinybutstrong version. I tried the beta version but no changed.

If you have a solution ?

Thank's.

答案1

得分: 0

自 TBS 版本 3.14.0 起,默认情况下不允许参数脚本。这是一项安全选项。

您可以启用参数脚本如下:

$TBS->SetOption('scripts_allowed', true);
英文:

Since TBS version 3.14.0 , parameter script is not allowed by default. This is a security option.

You can enable parameter script doing :

$TBS->SetOption('scripts_allowed', true);

huangapple
  • 本文由 发表于 2023年2月26日 22:17:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/75572598.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定