Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot delete wiki page which title containing double quote symbol #7596

Open
1 task done
pavel-givola opened this issue Nov 9, 2023 · 1 comment · May be fixed by gogs/git-module#103 or #7656
Open
1 task done

Cannot delete wiki page which title containing double quote symbol #7596

pavel-givola opened this issue Nov 9, 2023 · 1 comment · May be fixed by gogs/git-module#103 or #7656
Labels
💊 bug Something isn't working

Comments

@pavel-givola
Copy link

Gogs version

0.14.0+dev

Git version

2.34.1

Operating system

Ubuntu 22.04 LTS

Database

PostgreSQL 14

Describe the bug

Cannot delete wiki page which title containing double quote symbol ". It's redirecting to the wiki pages list after clicking Delete page -> Yes and the wiki page still appears in the list

To reproduce

Create a wiki page with title containing double quote symbol Test "Word" for example

Expected behavior

Wiki page supposed to be deleted

Additional context

In the list of wiki pages title displayed like Test \"Word\". When go to editing page it's displaying like Test \" Word\"

After editing wiki page a new entry appears (which can be deleted).

Code of Conduct

  • I agree to follow this project's Code of Conduct
@pavel-givola pavel-givola added the 💊 bug Something isn't working label Nov 9, 2023
@pavel-givola
Copy link
Author

pavel-givola commented Nov 10, 2023

I managed to delete it manually from /gogs-location-dir/data/tmp/local-wiki/ with rm -r 'file.md' and then committed it. But that quite "dirty-hack" solution I think. Would be better to fix the bug I described

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💊 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant