Skip to content

Commit 7db5590

Browse files
committed
Python: Copy old tornado tests
1 parent c69b776 commit 7db5590

File tree

1 file changed

+25
-0
lines changed
  • python/ql/test/experimental/library-tests/frameworks/tornado

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import tornado.web
2+
3+
class Handler1(tornado.web.RequestHandler):
4+
def get(self):
5+
self.write(self.get_argument("xss"))
6+
7+
class Handler2(tornado.web.RequestHandler):
8+
def get(self):
9+
args = self.get_body_arguments()
10+
name = args[0]
11+
self.write(name)
12+
13+
class Handler3(tornado.web.RequestHandler):
14+
15+
def get(self):
16+
req = self.request
17+
h = req.headers
18+
url = h["url"]
19+
self.redirect(url)
20+
21+
22+
class DeepInheritance(Handler3):
23+
24+
def get(self):
25+
self.write(self.get_argument("also_xss"))

0 commit comments

Comments
 (0)