0

如何防止 Rails 6 继续执行包含许多 "/" 的 GET URL?

例子 :

route.rb
get "test/testB", to: "test/testB#show"

RAILS 将能够访问这些 URL:

http://localhost///test/testB
http://localhost/////////test/testB
...

谢谢你的建议,托马斯

4

0 回答 0