mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
csharp-mvc: check filename from url
This commit is contained in:
@ -16,6 +16,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
using System.IO;
|
||||
using System.Web.Mvc;
|
||||
using OnlineEditorsExampleMVC.Helpers;
|
||||
using OnlineEditorsExampleMVC.Models;
|
||||
@ -35,7 +36,7 @@ namespace OnlineEditorsExampleMVC.Controllers
|
||||
{
|
||||
Mode = editorsMode,
|
||||
Type = editorsType,
|
||||
FileName = fileName
|
||||
FileName = Path.GetFileName(fileName)
|
||||
};
|
||||
|
||||
return View("Editor", file);
|
||||
|
||||
Reference in New Issue
Block a user