Index: openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl,v diff -u -r1.368.2.19 -r1.368.2.20 --- openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl 16 Jun 2019 19:58:52 -0000 1.368.2.19 +++ openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl 16 Jun 2019 20:07:43 -0000 1.368.2.20 @@ -721,10 +721,11 @@ set geometry [::xo::cc query_parameter geometry ""] if {[string match "image/*" ${:mime_type}] && $geometry ne ""} { - if {![file isdirectory /tmp/$geometry]} { - file mkdir /tmp/$geometry + set tmpdir [ad_tmpdir] + if {![file isdirectory $tmpdir/$geometry]} { + file mkdir $tmpdir/$geometry } - set scaled_image /tmp/$geometry/${:revision_id} + set scaled_image $tmpdir/$geometry/${:revision_id} if {![file readable $scaled_image]} { set cmd [::util::which convert] if {$cmd ne ""} {