Lemmy: Bestiverse
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
MHLoppy@fedia.io to Programmer Humor@programming.dev · 2 months ago

isInHell = 'true'

fedia.io

message-square
81
fedilink
679

isInHell = 'true'

fedia.io

MHLoppy@fedia.io to Programmer Humor@programming.dev · 2 months ago
message-square
81
fedilink

Original post: hachyderm.io (Mastodon)

  • Trailblazing Braille Taser@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    8
    ·
    2 months ago

    Given the warning about capitalization, the best possible case is that they’re using ast.literal_eval() rather than throwing untrusted input into eval().

    Err, I guess they might be comparing strings to ‘True’ and are choosing to be really strict about capitalization for some reason.

    • MajorHavoc@programming.dev
      link
      fedilink
      arrow-up
      12
      ·
      2 months ago

      Yeah. Maybe .to_lower() is really expensive in their environment, lol.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 714 users / day
  • 4.6K users / week
  • 9.07K users / month
  • 17.5K users / 6 months
  • 1 local subscriber
  • 23.1K subscribers
  • 886 Posts
  • 17.8K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org