. "$_EXEC/themes/${WIKI_THEME}.sh"
-if [ "$(which awk)" ]; then
- md() { awk -f "$_EXEC/md_macros.awk" -f "$_EXEC/cgilite/markdown.awk"; }
-elif [ "$(which busybox)" ]; then
- md() { busybox awk -f "$_EXEC/md_macros.awk" -f "$_EXEC/cgilite/markdown.awk"; }
-else
- md() { cat; }
-fi
-
wiki() {
# Print content of a wiki page
# Get page from data or underlay dir, handle caching
FILE "${_EXEC}/${PATH_INFO#/\[.\]}"
return 0
;;
+ *${BR}*)
+ export ERROR_MSG='Page names containing newline character are not allowed'
+ theme_error 400
+ return 0
+ ;;
*/\#*)
export ERROR_MSG='Page names starting with "#" are not allowed'
theme_error 400