Best way to avoid code injection in PHP

前端 未结 10 1196
臣服心动
臣服心动 2020-12-01 05:29

My website was recently attacked by, what seemed to me as, an innocent code:



        
10条回答
  •  一向
    一向 (楼主)
    2020-12-01 06:05

    I'm assuming you deal with files in the same directory:

    
    

    This is not too pretty, but should fix your issue.

提交回复
热议问题