zshrc: Fixing a bug in urlencode()
[grml-etc-core.git] / etc / skel / .zshrc
index 377b7cf..d7b2840 100644 (file)
@@ -819,7 +819,7 @@ ogg2mp3_192() {
 urlencode() {
     setopt localoptions extendedglob
     input=( ${(s::)1} )
-    print ${(j::)input/(#b)([^A-Za-z0-9_.!~*\'\(\)-])/%$(([##16]#match))}
+    print ${(j::)input/(#b)([^A-Za-z0-9_.!~*\'\(\)-])/%${(l:2::0:)$(([##16]#match))}}
 }
 
 #f5# Install x-lite (VoIP software)