From 36b19d3d797d334b963eb77e608250e930742e76 Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Fri, 5 Dec 2008 18:51:16 +0100 Subject: [PATCH] zshrc: Fixing a bug in urlencode() Apparently, the hex value of an encoded character must be at least 2 digits wide. Found, explained and fix provided by Baptiste Daroussin. Thanks! --- debian/changelog | 7 +++++++ etc/skel/.zshrc | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 0fa42c8..1f77374 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +grml-etc-core (0.3.61) unstable; urgency=low + + * zshrc: Fix a bug in urlencode(), thanks to Baptiste Daroussin + [Closes: issue583] + + -- Frank Terbeck Fri, 05 Dec 2008 18:48:45 +0100 + grml-etc-core (0.3.60) unstable; urgency=low * zshrc: add alias http for running "python -m SimpleHTTPServer" diff --git a/etc/skel/.zshrc b/etc/skel/.zshrc index 377b7cf..d7b2840 100644 --- a/etc/skel/.zshrc +++ b/etc/skel/.zshrc @@ -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) -- 2.1.4