Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf-test.git/shortlog/4867f21e7256f9e82d0d0240565e4eca89a8664d
...commit 
http://git.netsurf-browser.org/netsurf-test.git/commit/4867f21e7256f9e82d0d0240565e4eca89a8664d
...tree 
http://git.netsurf-browser.org/netsurf-test.git/tree/4867f21e7256f9e82d0d0240565e4eca89a8664d

The branch, master has been updated
       via  4867f21e7256f9e82d0d0240565e4eca89a8664d (commit)
      from  1d97667d97e9558c0647e2c55306d627d5c38ea1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf-test.git/commit/?id=4867f21e7256f9e82d0d0240565e4eca89a8664d
commit 4867f21e7256f9e82d0d0240565e4eca89a8664d
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>

    cookies.cgi: Adjust for debugging
    
    Signed-off-by: Daniel Silverstone <[email protected]>

diff --git a/cgi-bin/cookies.cgi b/cgi-bin/cookies.cgi
index 2e634d3..ec2ed4f 100755
--- a/cgi-bin/cookies.cgi
+++ b/cgi-bin/cookies.cgi
@@ -54,7 +54,10 @@ function getCookie(cname) {
       if (counter === "") { counter = "0"; }
       var uploaded_counter = uploaded_cookies["counter"] || "0";
       document.write("<b>Cookie:</b> " + counter + "<br/><b>JSON:</b> " + 
uploaded_counter + "<br />");
-      document.cookie = "counter=" + ((parseInt(counter) + 1).toString());
+      counter = parseInt(counter);
+      counter = counter + 1;
+      counter = counter.toString();
+      document.cookie = "counter=" + counter;
     </script>
   </body>
 </html>


-----------------------------------------------------------------------

Summary of changes:
 cgi-bin/cookies.cgi |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/cgi-bin/cookies.cgi b/cgi-bin/cookies.cgi
index 2e634d3..ec2ed4f 100755
--- a/cgi-bin/cookies.cgi
+++ b/cgi-bin/cookies.cgi
@@ -54,7 +54,10 @@ function getCookie(cname) {
       if (counter === "") { counter = "0"; }
       var uploaded_counter = uploaded_cookies["counter"] || "0";
       document.write("<b>Cookie:</b> " + counter + "<br/><b>JSON:</b> " + 
uploaded_counter + "<br />");
-      document.cookie = "counter=" + ((parseInt(counter) + 1).toString());
+      counter = parseInt(counter);
+      counter = counter + 1;
+      counter = counter.toString();
+      document.cookie = "counter=" + counter;
     </script>
   </body>
 </html>


-- 
NetSurf test cases

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to