Comments (2)
Ok, so- I've looked a little more. I think the issue comes from line 123 onwards in wiki.py
folder = root[len(cfg.wiki_directory + "/"):]
If I remove the + "/"
from lines 123, 128, and 132- it seems to solve the problem. In a quick look round I couldn't see any ill effects elsewhere- but I'm not confident to state that for a fact!
from wikmd.
list_wiki
seems overall a bit janky. Instead of operating on strings we could use paths. This would make the code more resilient to edge cases like this one. It would probably make the code more readable too.
As a quick fix:
If you have the wiki directory configured with a trailing slash then drop it.
from wikmd.
Related Issues (20)
- Support softwrap when editing pages HOT 1
- Win: every commit adds new lines in the file
- Pandoc error (MacOS)? HOT 4
- [1.8.2] permission denied on /var/log/wikimd.log HOT 5
- Docker builds fail because `requirements.txt` is not available in the build context HOT 1
- docker missing arches HOT 1
- [Docker] Update init scripts
- [1.8.3] Unreadable links in Dark theme
- Search not working? HOT 2
- Permission issues from draw plugin HOT 3
- Consider switching from lxml's clean_html for enhanced security (and possibly performance) HOT 1
- Error when saving edited/created page - PermissionError HOT 3
- How to add git authentication? HOT 2
- make app use https_proxy env variable
- Improve project structure HOT 3
- Consider use `pathlib` over `os.path` HOT 1
- Ensure that the page name provided is secure and can be saved to disk.
- Empty folders should be removed
- Drawings missing from git HOT 3
- RuntimeError: Cannot understand pandocversion=3.1.8 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wikmd.