# HG changeset patch # User Pascal Bellard # Date 1441221696 -7200 # Node ID 4b5cb7cab0428a9ef64430109c5e619ec5fabb8f # Parent 9b17c1b6436011058ef0552fad5910ec61db5360 tazwikiss: large page support diff -r 9b17c1b64360 -r 4b5cb7cab042 tazwikiss/rootfs/var/www/wiki/index.sh --- a/tazwikiss/rootfs/var/www/wiki/index.sh Wed Sep 02 10:19:08 2015 +0200 +++ b/tazwikiss/rootfs/var/www/wiki/index.sh Wed Sep 02 21:21:36 2015 +0200 @@ -277,7 +277,8 @@ mkdir $tmpdir unesc="$(echo "$CONTENT" | sed 's/\^\(.\)/\n^\1\n/g' | grep '\^' |\ sort | uniq | grep -v "['[!]" | hexdump -e '"" 3/1 "%d " "\n"' |\ - awk '{ printf "-e '\''s/\\^%c/\\&#%d;/g'\'' ",$2,$2}') \ + awk '{ printf "-e '\''s/\\^%c/\\&#%d;/g'\'' ",$2,$2}' | \ + sed 's/\^\([*.[{]\)/^\\\1/') \ -e 's/\\^'\\''/\\'/g' -e 's/\^\!/\!/g' \ -e 's/\^\[/\[/g'" CONTENT="$(eval sed $unesc <" fi -header "Content-type: text/html" -sed -e "s/{ERROR}/$(sedesc "$ERROR")/" \ +html2="$(sed -e "s/{ERROR}/$(sedesc "$ERROR")/" \ -e "s/{WIKI_TITLE}/$(sedesc "$WIKI_TITLE")/" \ -e "s/{\([^}]*\)HISTORY\([^}]*\)}/$(sedesc "$HISTORY")/" \ -e "s/{PAGE_TITLE}/$(sedesc "$PAGE_TITLE_str")/" \ @@ -503,7 +503,6 @@ -e "s/{\([^}]*\)TOC\([^}]*\)}/$(sedesc "$TOC")/" \ -e "s/{PAGE_TITLE_BRUT}/$(sedesc "$(htmlentities "$PAGE_TITLE")")/" \ -e "s/{LAST_CHANGE}/$(sedesc "$LAST_CHANGES") :/" \ - -e "s/{CONTENT}/$(sedesc "$CONTENT")/" \ -e "s/{LANG}/$(sedesc "$LANG")/" \ -e "s/href=\"?/href=\"$(sedesc "$urlbase?$AUTH_GET")/g" \ -e "s/action=\"$(sedesc "$urlbase")\">/&$(sedesc "$AUTH_POST")/g" \ @@ -512,3 +511,14 @@ -e "s/{IP}/$REMOTE_ADDR/" -e "s/{COOKIE}//" -e "s/{RSS}//" <