fix: not able to update local created non-urlencoded wiki pages (#16139)
fix: not able to update local created non-urlencoded wiki pages (#16139)

* fix: not able to update local created non-urlencoded wiki pages

* tidy code

* as per suggestion

Signed-off-by: Andrew Thornton <6a547fdd28db89120bdd70d4af1f9ba672ccd43a@cantab.net>

* Don't replace space to dash for unescaped wiki filename

Co-authored-by: zeripath <6a547fdd28db89120bdd70d4af1f9ba672ccd43a@cantab.net>

* Remove incorrect comment

* Remove NameToUnescapedFilename()

Co-authored-by: Andrew Thornton <6a547fdd28db89120bdd70d4af1f9ba672ccd43a@cantab.net>
Co-authored-by: techknowlogick <274271a2414b6bd0d2eb0401dd4ff6e85d7016a7@gitea.io>
go-gitea/gitea,go-gitea/gitea,go-gitea/gitea