简体   繁体   English

TYPO3 realurl删除GET值

[英]TYPO3 realurl removes GET values

I need help =/ I updated TYPO3 to 4.5.5 and an older Version of realurl. 我需要帮助= /我将TYPO3更新为4.5.5和旧版本的realurl。

The plugin we're using gets the GET parameters by reading the 't3lib_div::_GET();' 我们使用的插件通过读取't3lib_div :: _ GET();来获取GET参数。 variable.. realurl does not let through values that are submited by the original GET method, it only passes the "readable" url parameters.... 变量.. realurl不允许通过原始GET方法提交的值,它只传递“可读”的url参数....

so: www.anypage.com/welcome/any works with config: 所以:www.anypage.com/welcome/any适用于配置:

array(
 'GETvar' => 'tx_plugin_pi1[database]',
 'valueMap' => array(
      'one' => 'one',
      'any' => 'any'
  ),
  'noMatch' => 'bypass'
)

but: www.anypage.com/welcome/?database=any 但是:www.anypage.com/welcome/?database = any

does not pass the value ('any') to the plugin... 没有将值('any')传递给插件...

I second Koopa's answer. 我第二个Koopa的回答。

In addition to that the variable must include the prefix: 除此之外,变量必须包含前缀:

www.anypage.com/welcome/?tx_plugin_pi1[database]=any

or you update the real url config to: 或者您将真实的URL配置更新为:

array(
 'GETvar' => 'database',
 'valueMap' => array(
      'one' => 'one',
      'any' => 'any'
  ),
  'noMatch' => 'bypass'
)

该变量应该始终可以通过$ this-> piVars ['database']访问,不是吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM