Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile against new GeneWeb interface (safe user inputs) #4

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/api_piqi_util.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ open Config

let p_getenvbin env label =
let decode_varenv = Mutil.gen_decode false in
try Some (decode_varenv (List.assoc (decode_varenv label) env))
try Some (decode_varenv (List.assoc label env))
with Not_found -> None

module Date
Expand Down Expand Up @@ -87,12 +87,12 @@ module Date
prec = None;
dmy = None;
dmy2 = None;
text = Some (Util.safe_html txt);
text = Some txt;
}

let date_of_piqi_date date =
match date.M.Date.text with
| Some txt -> Dtext (Util.safe_html txt)
| Some txt -> Dtext txt
| _ ->
let cal =
match date.M.Date.cal with
Expand Down Expand Up @@ -256,7 +256,7 @@ let print_result conf data =
in
let data = data output in
Util.html ~content_type conf ;
Output.print_string conf data
Output.print_sstring conf data

let from_piqi_status = function
| `bad_request -> Def.Bad_Request
Expand Down
Loading