Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] dev from ArchiveBox:dev #1

Open
wants to merge 3,659 commits into
base: dev
Choose a base branch
from
Open

[pull] dev from ArchiveBox:dev #1

wants to merge 3,659 commits into from

Conversation

pull[bot]
Copy link

@pull pull bot commented May 21, 2022

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

@pull pull bot added ⤵️ pull merge-conflict Resolve conflicts manually labels May 21, 2022
'youtube_dl',
], capture_output=True, text=True, cwd=out_dir).stdout.split('Location: ')[-1].split('\n', 1)[0]
NEW_YOUTUBEDL_BINARY = Path(pkg_path) / 'youtube_dl' / '__main__.py'
os.chmod(NEW_YOUTUBEDL_BINARY, 0o777)

Check failure

Code scanning / CodeQL

Overly permissive file permissions

Overly permissive mask in chmod sets file to world writable.
if PUBLIC_INDEX:
return redirect('/public')

return redirect(f'/admin/login/?next={request.path}')

Check warning

Code scanning / CodeQL

URL redirection from remote source

Untrusted URL redirection depends on [a user-provided value](1).

def get(self, request, path):
if not request.user.is_authenticated and not PUBLIC_SNAPSHOTS:
return redirect(f'/admin/login/?next={request.path}')

Check warning

Code scanning / CodeQL

URL redirection from remote source

Untrusted URL redirection depends on [a user-provided value](1).

# missing trailing slash -> redirect to index
if '/' not in path:
return redirect(f'{path}/index.html')

Check warning

Code scanning / CodeQL

URL redirection from remote source

Untrusted URL redirection depends on [a user-provided value](1).
response = super().get(*args, **kwargs)
return response
else:
return redirect(f'/admin/login/?next={self.request.path}')

Check warning

Code scanning / CodeQL

URL redirection from remote source

Untrusted URL redirection depends on [a user-provided value](1).

def add_view(self, request):
if not request.user.is_authenticated:
return redirect(f'/admin/login/?next={request.path}')

Check warning

Code scanning / CodeQL

URL redirection from remote source

Untrusted URL redirection depends on [a user-provided value](1).
pirate and others added 30 commits December 18, 2024 21:06
Fixes: attributeerror: 'list' object has no attribute 'SOURCES_DIR'
I was getting:
ImportError: cannot import name 'CONSTANTS' from partially initialized module 'archivebox' (most likely due to a circular import)
(/nix/store/6fy0wgy7r3ld3k590kxgxrc0r1cca347-archivebox-0.8.6rc3/lib/python3.12/site-packages/archivebox/__init__.py)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⤵️ pull merge-conflict Resolve conflicts manually
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants