I'm bored, ask me computer stuff

A repository for intrinsically valuable information

Re: I'm bored, ask me computer stuff

Postby A Combustible Lemon » Sat Jun 09, 2018 8:41 am

Windy wrote:What's a regex that can be applied to a string to prevent any possible XSS attack?


Code: Select all
/(\S|\s)*/g


Don't use regexes to prevent XSS attacks? just maintain sane data, don't eval things, stick to CORS and let the browser handle the rest.

NathanLoiselle wrote:If I wear a dead computer's skin can I claim that I am, in fact, an AI?


No, you need to wear its brains.
  • 5



WE ARE ALL FLOATING IN THE WINDS OF TIME. BUT YOUR CANDLE WILL FLICKER FOR SOME TIME BEFORE IT GOES OUT -- A LITTLE REWARD FOR A LIFE WELL LIVED. FOR I CAN SEE THE BALANCE AND YOU HAVE LEFT THE WORLD MUCH BETTER THAN YOU FOUND IT, AND IF YOU ASK ME, said Death, NOBODY COULD DO ANY BETTER THAN THAT...
User avatar
A Combustible Lemon
TCS Regular
TCS Regular
 
Posts: 486
Joined: Thu Sep 25, 2014 7:25 pm
Location: The Internet, India
Show rep
Title: Grenadier

Previous

Who is online

Users browsing this forum: No registered users and 1 guest