summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--initramfs/stage3-stuff/etc/functions10
1 files changed, 9 insertions, 1 deletions
diff --git a/initramfs/stage3-stuff/etc/functions b/initramfs/stage3-stuff/etc/functions
index 5b7b511e..9bb144d2 100644
--- a/initramfs/stage3-stuff/etc/functions
+++ b/initramfs/stage3-stuff/etc/functions
@@ -89,6 +89,13 @@ else
rest="$var"
prot=""
fi
+# remove temporary '::' from path, since it conflicts with port specification
+# ticket #232
+if strinstr "::" "$rest" ; then
+ rest=$(echo $rest | sed -e 's,::,§§§§§,g')
+elif strinstr "\:\:" "$rest" ; then
+ rest=$(echo $rest | sed -e 's,\:\:,§§§§§,g')
+fi
# get the server IP or name and port - URI authority
# you get the path or other token without leading "/" - add it later if
# needed (fixme: port might be broken)
@@ -113,7 +120,8 @@ fi
case "$2" in
prot) echo "$prot" ;;
server) echo "$server" ;;
- path) echo "$path" ;;
+ # add '::' again to path, ticket #232
+ path) echo "$path" | sed -e 's,§§§§§,\:\:,g' ;;
port) echo "$port" ;;
query) echo "$query" ;;
esac