mirror of https://gitlab.com/bashrc2/epicyon
Merge branch 'main' of ssh://code.freedombone.net:2222/bashrc/epicyon into main
commit
5adb2c0c39
|
|
@ -1442,7 +1442,7 @@ def runDesktopClient(baseDir: str, proxyType: str, httpPrefix: str,
|
||||||
_desktopShowBanner()
|
_desktopShowBanner()
|
||||||
print('No posts\n')
|
print('No posts\n')
|
||||||
if proxyType == 'tor':
|
if proxyType == 'tor':
|
||||||
print('You may need to run the desktop client ' + \
|
print('You may need to run the desktop client ' +
|
||||||
'with the --http option')
|
'with the --http option')
|
||||||
|
|
||||||
# wait for a while, or until a key is pressed
|
# wait for a while, or until a key is pressed
|
||||||
|
|
|
||||||
|
|
@ -8,17 +8,6 @@ fi
|
||||||
|
|
||||||
echo "Starting static analysis"
|
echo "Starting static analysis"
|
||||||
|
|
||||||
for sourceFile in epicyon/*.py
|
|
||||||
do
|
|
||||||
result=$($cmd "$sourceFile")
|
|
||||||
if [ "$result" ]; then
|
|
||||||
echo ''
|
|
||||||
echo "$result"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
echo -n '.'
|
|
||||||
done
|
|
||||||
|
|
||||||
for sourceFile in *.py
|
for sourceFile in *.py
|
||||||
do
|
do
|
||||||
result=$($cmd "$sourceFile")
|
result=$($cmd "$sourceFile")
|
||||||
|
|
|
||||||
6
tests.py
6
tests.py
|
|
@ -266,11 +266,15 @@ def testHttpSigNew():
|
||||||
domain, port,
|
domain, port,
|
||||||
boxpath, httpPrefix, messageBodyJsonStr,
|
boxpath, httpPrefix, messageBodyJsonStr,
|
||||||
'rsa-sha256')
|
'rsa-sha256')
|
||||||
assert signatureIndexHeader == \
|
expectedIndexHeader = \
|
||||||
'keyId="https://example.com/users/foo#main-key"; ' + \
|
'keyId="https://example.com/users/foo#main-key"; ' + \
|
||||||
'alg=hs2019; created=' + str(secondsSinceEpoch) + '; ' + \
|
'alg=hs2019; created=' + str(secondsSinceEpoch) + '; ' + \
|
||||||
'sig1=(*request-target, *created, host, date, ' + \
|
'sig1=(*request-target, *created, host, date, ' + \
|
||||||
'digest, content-type, content-length)'
|
'digest, content-type, content-length)'
|
||||||
|
if signatureIndexHeader != expectedIndexHeader:
|
||||||
|
print('Unexpected new http header: ' + signatureIndexHeader)
|
||||||
|
print('Should be: ' + expectedIndexHeader)
|
||||||
|
assert signatureIndexHeader == expectedIndexHeader
|
||||||
assert signatureHeader == \
|
assert signatureHeader == \
|
||||||
'sig1=:LQU1PcJILSp1Q30GWINusfftYYKfTtam7InSu2c+ZzfGC' + \
|
'sig1=:LQU1PcJILSp1Q30GWINusfftYYKfTtam7InSu2c+ZzfGC' + \
|
||||||
'bTSevRgifZFuG2asFi8ubG/uUVHiBwIxxIz1u/JyWC3lYIFgjQF' + \
|
'bTSevRgifZFuG2asFi8ubG/uUVHiBwIxxIz1u/JyWC3lYIFgjQF' + \
|
||||||
|
|
|
||||||
|
|
@ -42,9 +42,7 @@ def htmlGetLoginCredentials(loginParams: str,
|
||||||
nickname = nickname[1:]
|
nickname = nickname[1:]
|
||||||
if '@' in nickname:
|
if '@' in nickname:
|
||||||
# the full nickname@domain has been entered
|
# the full nickname@domain has been entered
|
||||||
handleDomain = nickname.split('@')[1].strip()
|
nickname = nickname.split('@')[0]
|
||||||
if handleDomain == domain:
|
|
||||||
nickname = nickname.split('@')[0]
|
|
||||||
elif arg.split('=', 1)[0] == 'password':
|
elif arg.split('=', 1)[0] == 'password':
|
||||||
password = arg.split('=', 1)[1]
|
password = arg.split('=', 1)[1]
|
||||||
elif arg.split('=', 1)[0] == 'register':
|
elif arg.split('=', 1)[0] == 'register':
|
||||||
|
|
|
||||||
|
|
@ -1753,12 +1753,14 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
|
||||||
'style="height:200px" spellcheck="false">' + \
|
'style="height:200px" spellcheck="false">' + \
|
||||||
allowedInstancesStr + '</textarea>\n'
|
allowedInstancesStr + '</textarea>\n'
|
||||||
|
|
||||||
editProfileForm += \
|
editProfileForm += ' </div></details>\n'
|
||||||
' <br><b><label class="labels">' + \
|
|
||||||
translate['Git Projects'] + '</label></b>\n'
|
editProfileForm += '<details><summary class="cw">' + \
|
||||||
|
translate['Git Projects'] + '</summary>\n'
|
||||||
|
editProfileForm += ' <div class="container">\n'
|
||||||
idx = 'List of project names that you wish to receive git patches for'
|
idx = 'List of project names that you wish to receive git patches for'
|
||||||
editProfileForm += \
|
editProfileForm += \
|
||||||
' <br><label class="labels">' + \
|
' <label class="labels">' + \
|
||||||
translate[idx] + '</label>\n'
|
translate[idx] + '</label>\n'
|
||||||
editProfileForm += \
|
editProfileForm += \
|
||||||
' <textarea id="message" name="gitProjects" ' + \
|
' <textarea id="message" name="gitProjects" ' + \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue