Comments (1)
I ran in to this same issue. Apache cannot overwrite the DocumentError for WSGI unless its running as a deamon. I figured I would just patch it locally for now to get around the issue all together. I used a random word which works OK to get back a regular error message:
--- /linux/d-note-master/dnote/note.py 2015-10-29 21:16:22.000000000 +0100
+++ note.py 2017-01-09 11:51:28.030837067 +0100
@@ -108,8 +108,14 @@
self.url = url
url = url + "==" # add the padding back
- self.nonce = base64.urlsafe_b64decode(url.encode("utf-8"))
- self.f_key = KDF.PBKDF2(
+
+ try:
+ self.nonce = base64.urlsafe_b64decode(url.encode("utf-8"))
+ except:
+ url = "errormessage=="
+ self.nonce = base64.urlsafe_b64decode(url.encode("utf-8"))
+
+ self.f_key = KDF.PBKDF2(
self.nonce, dconfig.nonce_salt.decode("hex"), 16)
self.aes_key = KDF.PBKDF2(
self.nonce, dconfig.aes_salt.decode("hex"), 32)
from d-note.
Related Issues (20)
- Add support for copying/pasting in just a hash HOT 2
- iOS bug prevents selecting text with underscores HOT 2
- Add account drop support HOT 1
- Create a more mobile-friendly theme HOT 1
- Add support for changing the browser redirection timeout HOT 1
- information leak to server operator HOT 7
- New installation does not create dconfig.py HOT 2
- New installation - Internal Server error and no hashcash.db HOT 10
- A too short or too long URL results in 500 error. Should be a 404. HOT 3
- Apache Config
- Problem installation HOT 3
- Stopped maintenance? HOT 4
- Installation Nginx HOT 1
- Two installation issues HOT 1
- Errors in the INSTALL.md
- d-note running very slowly after renewing certificate and rebooting server HOT 7
- Customizing the html page HOT 2
- Note re-creation vulnerability HOT 12
- Link previews make messages go kaboom. 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 d-note.