douyong5476 2018-06-03 20:51
浏览 18

使用IP构建URL是空白的

I'm using CakePHP 3.5.17 and I'm trying to pass a URL with an IP from one of my forms and it's always being removed when I get to the controller.

If I post http://10.3.37 I receive

Array
(
    [asset_field_id] => 3
    [value] => http://10.3.37
    [asset_id] => 13
)

as expected. But if I put in the full address http://10.3.37.1 I receive

Array
(
)

If I change the IP to a domain name, or remove the 'h' or modify the string in any other way I get the result I'd expect. Is there some setting or security thing I'm not aware of?

Somewhere along the line all of the form data is being stripped out and I don't know where.

This form isn't using any kind of validation that I'm aware of.

  • 写回答

1条回答 默认 最新

  • doushi3202 2018-07-02 06:18
    关注

    I finally figured out the problem was ModSecurity. I loosened that up and thing started working as expected.

    评论

报告相同问题?

悬赏问题

  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 unity第一人称射击小游戏,有demo,在原脚本的基础上进行修改以达到要求
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line