When i'm using file_chooser_button with chroot set to "/opt" ,I expect to get /opt/test1 return ,instead "/test1" . This shoudn't be the normal behavior?
BTW,in chroot mode,you also have to deal with the $rootdir to avoid getting values like "//opt/test1" .
In my way ,I check $rootdir eq "/" in line 84 and line 89 in chooser.cgi ,version 1.52
Log in to post a comment.