Empty "for" loop in Facebook ajax
Posted
by celticpride
on Stack Overflow
See other posts from Stack Overflow
or by celticpride
Published on 2010-06-17T01:49:58Z
Indexed on
2010/06/17
1:52 UTC
Read the original article
Hit count: 270
While surfing facebook and using the Firebug network debugger I noticed that facebook's AJAX responses all start with an empty for loop.
Example:
for(;;);{...}
Does anyone know why this is done? I assume it's to prevent some sort of XSS attack but I don't totally understand. Thanks!
© Stack Overflow or respective owner