]> git.plutz.net Git - cgilite/blobdiff - cgilite.sh
mime types for streaming formats
[cgilite] / cgilite.sh
index 2e538324c0a8b5ec45f6fb2235f254fcf359db22..e145f2eebe173be82475cde1ec60fb200a14ed63 100755 (executable)
@@ -202,6 +202,7 @@ HTML(){
       \'*) out="${out}'";;
       \[*) out="${out}[";;
       \]*) out="${out}]";;
+      "${CR}"*) out="${out}
";;
       "${BR}"*) out="${out}
";;
       *) out="${out}${str%"${str#?}"}";;
     esac
@@ -224,6 +225,8 @@ URL(){
       \[*) out="${out}%5B";;
       \]*) out="${out}%5D";;
       \ *) out="${out}%20";;
+      "        "*) out="${out}%09";;
+      "${CR}"*) out="${out}%0D";;
       "${BR}"*) out="${out}%0A";;
       %*) out="${out}%25";;
       *) out="${out}${str%"${str#?}"}";;