Fix: Clean output buffer in upload_profile_picture.php to prevent HTML in JSON response

- Move header() call to before any includes that might output
- Start output buffering at the beginning
- Clean output buffer before sending JSON response
This commit is contained in:
twotalesanimation
2025-12-04 16:05:44 +02:00
parent 79e292dc7c
commit 716de2f0e9
3 changed files with 7 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB