Further cleanup and simplification of redirect code.
This commit is contained in:
parent
e74f2966ca
commit
d12c13ee25
3 changed files with 15 additions and 15 deletions
|
|
@ -6,7 +6,7 @@ fn dprintv { { for(v in $*) { echo -n $v^'#'^$#$v^'=' $$v '; ' }; echo } >[1=2]
|
|||
fn escape_html { sed 's/&/\&/g; s/</\</g; s/>/\>/g' $* }
|
||||
|
||||
fn http_redirect {
|
||||
if(~ $1 http:* https:*)
|
||||
if(~ $1 http://* https://*)
|
||||
t=$1
|
||||
if not if(~ $1 /*)
|
||||
t=$"base_url^$1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue