File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
doc-versioning/doc_versioning/gui Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 21
21
22
22
<!-- differ
23
23
-- --------------------------------------------------- -->
24
-
24
+
25
+ <!-- clickjacking protection-->
26
+ < style > html {display : none; } </ style >
27
+ < script >
28
+ if ( self === top ) {
29
+ document . documentElement . style . display = 'block' ;
30
+ } else {
31
+ top . location = self . location ;
32
+ }
33
+ </ script >
25
34
</ head >
26
35
< body >
27
36
< div style ="text-align: center; margin-top: 50px; margin-left: 50px ">
Original file line number Diff line number Diff line change 20
20
< link rel ="stylesheet " href ="{{ url_for('static', filename='css/skeleton.css') }} ">
21
21
</ head >
22
22
< body >
23
- < a href ="http://par.sr " target ="_blank " style ="outline:none;border:none; " onclick ="openLink(event) ">
23
+ < a href ="http://par.sr " target ="_blank " rel =" noopener noreferrer " style ="outline:none;border:none; " onclick ="openLink(event) ">
24
24
< img src ="{{ url_for('static', filename='images/logo.png') }} " width ="15% " alt ="Parsr Powered " border ="0 " />
25
25
</ a >
26
26
< div style ="text-align: center; margin-top: 50px; ">
Original file line number Diff line number Diff line change 21
21
22
22
class PostHandler (BaseHTTPRequestHandler ):
23
23
def do_POST (self ):
24
+
24
25
content_length = int (self .headers ['Content-Length' ])
25
26
post_data = self .rfile .read (content_length )
26
27
json_data = json .loads (post_data )
27
28
28
29
new_json_data = process_data (json_data )
29
30
30
31
self .send_response (200 )
32
+ self .send_header ("Content-type" , "application/json" )
31
33
self .end_headers ()
32
34
self .wfile .write (json .dumps (new_json_data ).encode ('utf8' ))
33
35
You can’t perform that action at this time.
0 commit comments