mirror of https://gitlab.com/bashrc2/epicyon
Merge branch 'main' of ssh://code.freedombone.net:2222/bashrc/epicyon
commit
0f82031b3d
|
|
@ -1049,5 +1049,5 @@ def extractTextFieldsInPOST(postBytes, boundary, debug: bool,
|
||||||
if line > 2:
|
if line > 2:
|
||||||
postValue += '\n'
|
postValue += '\n'
|
||||||
postValue += postLines[line]
|
postValue += postLines[line]
|
||||||
fields[postKey] = urllib.parse.unquote_plus(postValue)
|
fields[postKey] = urllib.parse.unquote(postValue)
|
||||||
return fields
|
return fields
|
||||||
|
|
|
||||||
22
daemon.py
22
daemon.py
|
|
@ -7023,7 +7023,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
"""Delete button is pressed on a post
|
"""Delete button is pressed on a post
|
||||||
"""
|
"""
|
||||||
if not cookie:
|
if not cookie:
|
||||||
print('ERROR: no cookie given when deleting')
|
print('ERROR: no cookie given when deleting ' + path)
|
||||||
self._400()
|
self._400()
|
||||||
self.server.GETbusy = False
|
self.server.GETbusy = False
|
||||||
return
|
return
|
||||||
|
|
@ -12067,7 +12067,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
repeatPrivate = True
|
repeatPrivate = True
|
||||||
self.path = self.path.replace('?repeatprivate=', '?repeat=')
|
self.path = self.path.replace('?repeatprivate=', '?repeat=')
|
||||||
# announce/repeat button was pressed
|
# announce/repeat button was pressed
|
||||||
if htmlGET and '?repeat=' in self.path:
|
if authorized and htmlGET and '?repeat=' in self.path:
|
||||||
self._announceButton(callingDomain, self.path,
|
self._announceButton(callingDomain, self.path,
|
||||||
self.server.baseDir,
|
self.server.baseDir,
|
||||||
cookie, self.server.proxyType,
|
cookie, self.server.proxyType,
|
||||||
|
|
@ -12086,11 +12086,11 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
'emoji search shown done',
|
'emoji search shown done',
|
||||||
'show announce done')
|
'show announce done')
|
||||||
|
|
||||||
if htmlGET and '?unrepeatprivate=' in self.path:
|
if authorized and htmlGET and '?unrepeatprivate=' in self.path:
|
||||||
self.path = self.path.replace('?unrepeatprivate=', '?unrepeat=')
|
self.path = self.path.replace('?unrepeatprivate=', '?unrepeat=')
|
||||||
|
|
||||||
# undo an announce/repeat from the web interface
|
# undo an announce/repeat from the web interface
|
||||||
if htmlGET and '?unrepeat=' in self.path:
|
if authorized and htmlGET and '?unrepeat=' in self.path:
|
||||||
self._undoAnnounceButton(callingDomain, self.path,
|
self._undoAnnounceButton(callingDomain, self.path,
|
||||||
self.server.baseDir,
|
self.server.baseDir,
|
||||||
cookie, self.server.proxyType,
|
cookie, self.server.proxyType,
|
||||||
|
|
@ -12189,7 +12189,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
'follow deny done')
|
'follow deny done')
|
||||||
|
|
||||||
# like from the web interface icon
|
# like from the web interface icon
|
||||||
if htmlGET and '?like=' in self.path:
|
if authorized and htmlGET and '?like=' in self.path:
|
||||||
self._likeButton(callingDomain, self.path,
|
self._likeButton(callingDomain, self.path,
|
||||||
self.server.baseDir,
|
self.server.baseDir,
|
||||||
self.server.httpPrefix,
|
self.server.httpPrefix,
|
||||||
|
|
@ -12208,7 +12208,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
'like shown done')
|
'like shown done')
|
||||||
|
|
||||||
# undo a like from the web interface icon
|
# undo a like from the web interface icon
|
||||||
if htmlGET and '?unlike=' in self.path:
|
if authorized and htmlGET and '?unlike=' in self.path:
|
||||||
self._undoLikeButton(callingDomain, self.path,
|
self._undoLikeButton(callingDomain, self.path,
|
||||||
self.server.baseDir,
|
self.server.baseDir,
|
||||||
self.server.httpPrefix,
|
self.server.httpPrefix,
|
||||||
|
|
@ -12226,7 +12226,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
'unlike shown done')
|
'unlike shown done')
|
||||||
|
|
||||||
# bookmark from the web interface icon
|
# bookmark from the web interface icon
|
||||||
if htmlGET and '?bookmark=' in self.path:
|
if authorized and htmlGET and '?bookmark=' in self.path:
|
||||||
self._bookmarkButton(callingDomain, self.path,
|
self._bookmarkButton(callingDomain, self.path,
|
||||||
self.server.baseDir,
|
self.server.baseDir,
|
||||||
self.server.httpPrefix,
|
self.server.httpPrefix,
|
||||||
|
|
@ -12245,7 +12245,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
'bookmark shown done')
|
'bookmark shown done')
|
||||||
|
|
||||||
# undo a bookmark from the web interface icon
|
# undo a bookmark from the web interface icon
|
||||||
if htmlGET and '?unbookmark=' in self.path:
|
if authorized and htmlGET and '?unbookmark=' in self.path:
|
||||||
self._undoBookmarkButton(callingDomain, self.path,
|
self._undoBookmarkButton(callingDomain, self.path,
|
||||||
self.server.baseDir,
|
self.server.baseDir,
|
||||||
self.server.httpPrefix,
|
self.server.httpPrefix,
|
||||||
|
|
@ -12264,7 +12264,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
'unbookmark shown done')
|
'unbookmark shown done')
|
||||||
|
|
||||||
# delete button is pressed on a post
|
# delete button is pressed on a post
|
||||||
if htmlGET and '?delete=' in self.path:
|
if authorized and htmlGET and '?delete=' in self.path:
|
||||||
self._deleteButton(callingDomain, self.path,
|
self._deleteButton(callingDomain, self.path,
|
||||||
self.server.baseDir,
|
self.server.baseDir,
|
||||||
self.server.httpPrefix,
|
self.server.httpPrefix,
|
||||||
|
|
@ -12283,7 +12283,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
'delete shown done')
|
'delete shown done')
|
||||||
|
|
||||||
# The mute button is pressed
|
# The mute button is pressed
|
||||||
if htmlGET and '?mute=' in self.path:
|
if authorized and htmlGET and '?mute=' in self.path:
|
||||||
self._muteButton(callingDomain, self.path,
|
self._muteButton(callingDomain, self.path,
|
||||||
self.server.baseDir,
|
self.server.baseDir,
|
||||||
self.server.httpPrefix,
|
self.server.httpPrefix,
|
||||||
|
|
@ -12302,7 +12302,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
'post muted done')
|
'post muted done')
|
||||||
|
|
||||||
# unmute a post from the web interface icon
|
# unmute a post from the web interface icon
|
||||||
if htmlGET and '?unmute=' in self.path:
|
if authorized and htmlGET and '?unmute=' in self.path:
|
||||||
self._undoMuteButton(callingDomain, self.path,
|
self._undoMuteButton(callingDomain, self.path,
|
||||||
self.server.baseDir,
|
self.server.baseDir,
|
||||||
self.server.httpPrefix,
|
self.server.httpPrefix,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue