It is possible to create a domain with 'Zero Width Space' in name

Created:

2017-01-12 12:51:51 UTC

Modified:

2017-08-16 06:12:03 UTC

0

Was this article helpful?


Have more questions?

Submit a request

It is possible to create a domain with 'Zero Width Space' in name

Applicable to:

  • Plesk Onyx for Linux

Symptoms

It is possible to create a domain name with 'Zero Width Space'. This can cause different issues while working with a domain. Opening the back file, it is possible to see something similar in domains table:

CONFIG_TEXT: example.<U+200B>com

Cause

Bug #PPPM-5543. Will be fixed in further Plesk updates.

Resolution

  1. Connect to the server using SSH.

  2. Create a Plesk database backup.

  3. Execute the following command on the copied one:

    # sed 's/\xe2\x80\x8b//g' psa_backup.sql > psa_correct.sql

  4. Restore the database:

    # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa < psa_correct.sql

Have more questions? Submit a request
Please sign in to leave a comment.