hofff/contao-restrict-get-parameters 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hofff/contao-restrict-get-parameters

最新稳定版本:1.0.4

Composer 安装命令:

composer require hofff/contao-restrict-get-parameters

包简介

Restrict allowed get parameters

README 文档

README

This Contao extension allows you to restrict GET parameters in the frontend by configuring a whitelist of allowed parameter patterns. Any GET parameters not matching the whitelist will be marked as unused and won't be processed by Contao.

System Requirements

  • PHP 8.1 or higher
  • Contao 4.13+ or 5.3+
  • Symfony 5.4+, 6.4+ or 7.0+

Configuration

In the Contao system settings, you can:

  1. Enable GET parameter restriction
  2. Configure a whitelist of allowed parameter patterns using wildcards (e.g., page*, *id, alias)

It's also possible to use the bundle configuration:

contao:
    localconfig:
      restrict_get_parameters: true
      restrict_get_parameters_whitelist: ['param-a', 'param-b']

Known limitations

Isotope product list

This extension uses the unused get parameter feature of Contao and marks all get parameters as unused before rendering a page. Used get parameters on the page are marked as used later on, so in the end Contao throws an exception if any parameter was not used. This does not work when a page contains an isotope product list / filter, as Isotope marks all get parameters as used.

统计信息

  • 总下载量: 173
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固