Omar9027 / ratproxy

Automatically exported from code.google.com/p/ratproxy
0 stars 0 forks source link

open forms from reports in new window #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. generate some report with ratproxy-report with POST requests
2. click on some POST link

When forms are openning in new windows you can stay and read current report

Patch:
--- ratproxy-report.orig    2010-03-25 16:36:17.517758221 +0300
+++ ratproxy-report 2010-03-25 16:35:49.995321426 +0300
@@ -337,7 +337,7 @@
       if ! echo "$payload" | grep -q '^GWT_RPC\['; then

         echo "<input type=submit value=\"edit values\"
onclick=\"document.getElementById('form$CNT').style.display='inline';return
false;\" style=\"border-width: 1px; background-color: #FFFFC0; font-size:
0.9em; display: inline\">"
-        echo "<form action=\"$url\" method=\"POST\" id=\"form$CNT\"
style=\"display: none\">"
+        echo "<form action=\"$url\" method=\"POST\" id=\"form$CNT\"
target=\"_blank\" style=\"display: none\">"
         echo "$payload" | sed 's/\&#x\(..\);/%\1/g' | sed 's/&/\
 /g' | sed 's/%26/\&/g;s/%3B/;/g' | sed 's/\%\(..\)/\&#x\1;/g' | \
         while IFS='=' read -r param val; do 

Original issue reported on code.google.com by naplan...@gmail.com on 25 Mar 2010 at 1:42

GoogleCodeExporter commented 9 years ago
OK.

Original comment by lcam...@gmail.com on 25 Mar 2010 at 8:54