Forum OpenACS Development: Re: external redirect on xowiki

Collapse
Posted by Iuri Sampaio on
So far i saw the code of ad_returnredirect was upadetd and that denies the eternal urls at proc ad_returnredirect unless the new argument allow_complete_url is set.

The new part of code of ad_returnredirect:

if {[util::external_url_p $target_url] && !$allow_complete_url_p} {
error "Redirction to external hosts is not allowed."
}

The question is how to use the switch "allow_complete_url"
in xowiki includelet

{{redirect -allow_complete_url -url http://mysite.com }}

Gives me error. Of course!! :)

Collapse
Posted by Iuri Sampaio on
The issue is solved.

{{redirect -url http://mysite.com }} is a customized includelet.

I went to the file packages/xowiki/tcl/includelet-procs.tcl and updated it as well to use the new switch.

Best wishes!