Menu
Why do programmers prefer dark mode? Because light attracts bugs!
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Azure
Backend
Bash
C++
Cloud
All Categories
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
Security bug Memes
Posts tagged with Security bug
The Single Equals Nightmare
Debugging
Javascript
Programming
Testing
Security
12 months ago
639.0K views
0 shares
Peacefully sleeping until your brain suddenly screams: "WAIT! That code uses a single equals sign for comparison instead of double equals! That's an assignment, not a condition check!" That single character difference between if (user = admin) and if (user == admin) means you're not checking if user equals admin—you're literally making user become admin and then checking if that assignment succeeded (which it always will). Congratulations, you just gave everyone admin access!
Today's picks
Where's The Love
Programming
149.5M views
18 days ago
the true answer
Programming
95.1K views
3 years ago
Thank You for Your Order Stickers Roll, Retro Camera Design Customer Review Stickers, Pink Square Stickers, Handmade Boutique Snap Tag Share Packaging Stickers Cute - 500pcs
Affiliate
$9.99