tundra (javascript) created by efi-arts
Viewing sample resized to 38% of original (view original) Loading...
Description

The first page in the comic book, Shark out of Water

Blacklisted

    waduhaduha said:
    axios? bros GENUINELY compromised

    this is the last place i expected to see this being referenced, let alone this quickly, and on an older post no less lmfao

  • Reply
  • |
  • 0
  • waduhaduha said:
    axios? bros GENUINELY compromised

    mranon42069 said:
    Not only that, he’s also not sanitizing his SQL queries 😭

    The SQL is perfectly safe! The rest of the code is obscured by my head, but it uses this pattern

    const sql = `SELECT id FROM s WHERE email = $1;`;
    const args = [email];
    const { rows } = await pg.query(sql, args);

    Parameterized queries such as $1 prevent SQL injection from happening

    This is also really old code and I've been using fetch instead of Axios for a long time now

  • Reply
  • |
  • 0