[Surfraw-commits] [SCM] surfraw - a fast unix command line interface to WWW branch, master, updated. surfraw_2-2-5_1-137-g3bf0d23

Ian Beckwith ianb at erislabs.net
Fri Oct 29 19:11:01 UTC 2010


The following commit has been merged in the master branch:
commit 6c923e1385f034fe0a0f451137c6ed5bb0298a99
Author: Ian Beckwith <ianb at erislabs.net>
Date:   Fri Oct 29 19:53:02 2010 +0100

    w3_url_escape: add /g to quote all "/", not just the first

diff --git a/ChangeLog b/ChangeLog
index 24227f4..d101b73 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-10-29  Ian Beckwith  <ianb at erislabs.net>
 
+	* w3_url_escape: add /g to '/'->'%2F' replacement.
 	* uzbl_load_url_from_surfraw: use @AWK@ to pick up
 	  ./configure's choice of awk implementation.
 
diff --git a/surfraw.IN b/surfraw.IN
index 4a1427d..835d564 100755
--- a/surfraw.IN
+++ b/surfraw.IN
@@ -218,7 +218,7 @@ w3_url_escape () {
 		     s/&/%26/g;
 		     s/,/%2C/g;
 #		     s/\./%2E/g;
-		     sx/x%2Fx;
+		     sx/x%2Fxg;
 		     s/:/%3A/g;
 		     s/;/%3B/g;
 		     s/</%3C/g;

-- 
surfraw -  a fast unix command line interface to WWW



More information about the Surfraw-commits mailing list