mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 21:15:56 +03:00
[PR #822] [MERGED] Fix Spaces in passwords are not handled correctly when adding servers #1071
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#1071
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cypht-org/cypht/pull/822
Author: @Shadow243
Created: 11/4/2023
Status: ✅ Merged
Merged: 3/5/2024
Merged by: @kroky
Base:
master← Head:smtp-imap-space-in-password📝 Commits (1)
d07bb2eFix Spaces in passwords are not handled correctly when adding servers issue📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
modules/core/site.js(+1 -1)📄 Description
Issue Description
I encountered an issue where spaces in passwords were being encoded as
+when submitting a POST request with the Content-Typeapplication/x-www-form-urlencoded. This behavior was causing problems, as passwords with spaces were not processed correctly on the server.Proposed Correction
To address this issue, I added URL decoding (
urldecode()) to the server-side code to properly decode data received from the POST request. This ensures that spaces in passwords are correctly handled and not transformed into+symbols. As a result, passwords containing spaces are now processed as expected.Steps to Reproduce
application/x-www-form-urlencoded.This change should resolve the issue as described in Issue #821 and ensure that passwords with spaces are handled correctly in POST requests.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.