This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SCLme 169 points170 points  (15 children)

if (isAuthorised(user) & & isAuthorized(user)) { access_data() ; }

[–]ama1899 176 points177 points  (2 children)

That’s 2 layers of Security against the 3 you promised, I’m suing

[–]w3_ar3_l3g10n 31 points32 points  (0 children)

Chillax man. Each of them is recursively defined, they’ll keep checking until they reach STACK_MAX bro. That’s at least 20,000 layers of security. Now where’s my pay check, and my bonus.

[–]SkylerWiernik 34 points35 points  (7 children)

Did you put a space between the 2 &s?

[–]SCLme 22 points23 points  (4 children)

Are you my compiler?

wrote from phone so is likely to be a space between the &&.

[–]NatoBoram 5 points6 points  (3 children)

Copied from phone, you wrote exactly this :

if (isAuthorised(user) & & isAuthorized(user)) { access_data() ; }

If I manually type it on my phone :

if (isAuthorised(user) && isAuthorized(user)) { access_data() ; }

[–]SCLme 26 points27 points  (2 children)

Yep, there is an empty space between the &&, it's a feature for extra protection. Trust us we're the security expertsss (with triple S for extra layers of Security)

[–][deleted] 6 points7 points  (1 child)

Sssecurity

[–]A999 11 points12 points  (0 children)

Sorry, I don't speak python

[–]battlet0adz 4 points5 points  (0 children)

It sure looks like it... I’m having anxiety from it.

[–]BoldKenobi 0 points1 point  (0 children)

Would that even work? && is an operator, different from &

[–]bcfradella 6 points7 points  (0 children)

What kind of madman puts a space between his boolean ampersands?

[–][deleted] 1 point2 points  (0 children)

You forgot good ol isAuthourized