home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 738215487

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/datasette/issues/1124#issuecomment-738215487 https://api.github.com/repos/simonw/datasette/issues/1124 738215487 MDEyOklzc3VlQ29tbWVudDczODIxNTQ4Nw== 9599 2020-12-03T18:50:26Z 2020-12-03T21:41:25Z OWNER

This fix works - calling .resolve() on the root_path before the comparison to ensure symlinks are resolved: python # Ensure full_path is within root_path to avoid weird "../" tricks try: print("full_path={}, root_path={}".format(full_path, root_path)) full_path.relative_to(root_path.resolve()) except ValueError as e: print(" ValueError:", e) await asgi_send_html(send, "404", 404) return

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
756439516  
Powered by Datasette · Queries took 0.602ms · About: github-to-sqlite