Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Merge pull request #551 from steve-bate/webui-changes

Steve Micallef0e254d02c7f6
diff --cc sf.py
index f77dce13,dd2bcd50..0bca4d8d
--- a/sf.py
+++ b/sf.py
@@@ -387,12 -383,18 +387,18 @@@ if __name__ == '__main__'
# Enable access to static files via the web directory
currentDir = os.path.abspath(sf.myPath())
- conf = {'/static': {
- 'tools.staticdir.on': True,
- 'tools.staticdir.dir': os.path.join(currentDir, 'static')
- }}
+ conf = {
+ '/query': {
+ 'tools.encode.text_only': False,
+ 'tools.encode.add_charset': True,
+ },
+ '/static': {
+ 'tools.staticdir.on': True,
+ 'tools.staticdir.dir': os.path.join(currentDir, 'static')
+ }
+ }
- passwd_file = sf.myPath() + '/passwd'
+ passwd_file = sf.dataPath() + '/passwd'
if os.path.isfile(passwd_file):
if not os.access(passwd_file, os.R_OK):
print("Could not read passwd file. Permission denied.")