-1
我使用文件名將其保存在數據庫中。但我得到了一些錯誤,當我想下載一些文件有這樣一些特點:"& , # "
如何對文件名進行編碼?
的錯誤是:
錯誤的請求
或
一個潛在的(&)
這是文件名的例子: 03. &愛&#m.mp3
這是我的代碼:
download_link.HRef = "upload/fm/" + ds.Tables[0].Rows[0]["mu_file"];
我怎麼編碼或驗證文件名稱由安全的方式。
你可以分享你的代碼? –
http://stackoverflow.com/questions/5967103/a-potentially-dangerous-request-path-value-was-detected-from-the-client? –