Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client->createFolder() fails when folder name contains double quotes #478

Open
bartnv opened this issue Mar 18, 2024 · 0 comments
Open

Client->createFolder() fails when folder name contains double quotes #478

bartnv opened this issue Mar 18, 2024 · 0 comments

Comments

@bartnv
Copy link

bartnv commented Mar 18, 2024

Describe the bug
Client->createFolder() fails with a TypeError on the return value when folder name contains double quotes. The IMAP server (in my case Dovecot 2.3.13) creates the folder succesfully, but createFolder() hits this error trying to return the result:

PHP Fatal error:  Uncaught TypeError: Webklex\PHPIMAP\Client::createFolder(): Return value must be of type Webklex\PHPIMAP\Folder, null returned in /{redacted}/vendor/webklex/php-imap/src/Client.php:579

Used config
Nothing relevant.

Code to Reproduce
$client->createFolder('test"test');

Expected behavior
The function returns the Folder class of the created folder.

Screenshots
Not applicable.

Desktop / Server (please complete the following information):

  • OS: Debian 11
  • PHP: 8.1
  • Version: 4.1.2
  • Provider: Dovecot 2.3.13 on local server

Additional context
None.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant