n=1; while filename=$(multipart_filename "file" "$n"); do
filename="$(printf %s "$filename" |tr /\\0 __)"
n=1; while filename=$(multipart_filename "file" "$n"); do
filename="$(printf %s "$filename" |tr /\\0 __)"
head -c $((CONTENT_LENGTH)) >/dev/null
return 0
elif [ "$attachment_delete" -a "$SESSION_ID" = "$tsid" ]; then
head -c $((CONTENT_LENGTH)) >/dev/null
return 0
elif [ "$attachment_delete" -a "$SESSION_ID" = "$tsid" ]; then
REDIRECT "${_BASE}${PATH_INFO}"
elif [ "$attachment_delete" ]; then
printf 'Refresh: %i\r\n' 4
theme_error 403
return 0
REDIRECT "${_BASE}${PATH_INFO}"
elif [ "$attachment_delete" ]; then
printf 'Refresh: %i\r\n' 4
theme_error 403
return 0
- elif acl_read "${PATH_INFO%\[attachment\]/}"; then
- theme_attachments "${PATH_INFO%\[attachment\]/}"
+ elif acl_read "${PATH_INFO%\[attachment\]}"; then
+ theme_attachments "${PATH_INFO%\[attachment\]}"