Compare commits

..

No commits in common. "8855a73dd8e623fe4845a83e71498c9e9a05e8a1" and "35eda0ff53038d604db8ca39bedfaf95b45bb5e5" have entirely different histories.

2 changed files with 7 additions and 8 deletions

View File

@ -2,4 +2,4 @@
# requires discount markdown: <https://www.pell.portland.or.us/~orc/Code/discount/> # requires discount markdown: <https://www.pell.portland.or.us/~orc/Code/discount/>
# note: must restart the application when this is changed # note: must restart the application when this is changed
# flags can be seen at: <https://github.com/Orc/discount/blob/3520113e1fbf2e012ba24ceb1343c37acda4edf0/pgm_options.c#L45=> # flags can be seen at: <https://github.com/Orc/discount/blob/3520113e1fbf2e012ba24ceb1343c37acda4edf0/pgm_options.c#L45=>
/usr/bin/markdown -f fencedcode -f ext -f footnote -f latex $1 /usr/bin/markdown -f fencedcode -f ext -f footnote $1

View File

@ -40,12 +40,6 @@ fn werc_exec_request {
# could be useful for debugging, but # could be useful for debugging, but
# otherwise not worth it # otherwise not worth it
sitedir=$sitesdir/$site sitedir=$sitesdir/$site
req_path=`{echo -n $REQUEST_URI | sed 's/\?.*//; s!//+!/!g; s/%5[Ff]/_/g; s/'^$forbidden_uri_chars^'//g; s/\.\.*/./g; 1q'}
req_url=$base_url^$req_path
local_path=$sitedir$req_path
local_file=''
ifs='/' { args=`{echo -n $req_path} }
headers=`{get_lib_file headers.tpl} headers=`{get_lib_file headers.tpl}
master_template=`{get_lib_file default_master.tpl} master_template=`{get_lib_file default_master.tpl}
current_date_time=`{date} current_date_time=`{date}
@ -53,6 +47,11 @@ fn werc_exec_request {
# Note: $REQUEST_URI is not officially in CGI 1.1, but seems to be de-facto # Note: $REQUEST_URI is not officially in CGI 1.1, but seems to be de-facto
# Note: We only urldecode %5F->'_' because some sites (stackoverflow.com?) urlencode it in their links, # Note: We only urldecode %5F->'_' because some sites (stackoverflow.com?) urlencode it in their links,
# perhaps we should completel urldecode the whole url. # perhaps we should completel urldecode the whole url.
req_path=`{echo -n $REQUEST_URI | sed 's/\?.*//; s!//+!/!g; s/%5[Ff]/_/g; s/'^$forbidden_uri_chars^'//g; s/\.\.*/./g; 1q'}
req_url=$base_url^$req_path
local_path=$sitedir$req_path
local_file=''
ifs='/' { args=`{echo -n $req_path} }
# Preload post args for templates where cgi's stdin is not accessible # Preload post args for templates where cgi's stdin is not accessible
if(~ $REQUEST_METHOD POST) { if(~ $REQUEST_METHOD POST) {