# Theming - Slogan encoding issue

**URL:** <https://help.nextcloud.com/t/theming-slogan-encoding-issue/47915>\
**Category:** ℹ️ Support\
**Tags:** theming\
**Created:** [February 19, 2019, 3:56pm UTC](https://help.nextcloud.com/t/theming-slogan-encoding-issue/47915 "2019-02-19T15:56:00Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![fishter](https://help.nextcloud.com/letter_avatar/fishter/32/6_449c533f586939b6e5f246632a46421f.png) [@fishter](https://help.nextcloud.com/u/fishter)\
**Post date:** [February 19, 2019, 3:56pm UTC](https://help.nextcloud.com/t/theming-slogan-encoding-issue/47915/1 "2019-02-19T15:56:04Z")

</div>

> **Support intro**
>
> Sorry to hear you’re facing problems 🙁
> 
> _**[help.nextcloud.com](http://help.nextcloud.com) is for home/non-enterprise users. If you’re running a business, paid support can be accessed via [portal.nextcloud.com](http://portal.nextcloud.com) where we can ensure your business keeps running smoothly.**_
> 
> In order to help you as quickly as possible, before clicking **Create Topic** please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
> 
> ```
> example
> 
> ```
> 
> Or for longer, use three backticks above and below the code snippet:
> 
> ```auto
> longer
> example
> here
> 
> ```
> 
> Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can ❤

Nextcloud version _(eg, 12.0.2)_: 15.0.4  
Operating system and version _(eg, Ubuntu 17.04)_: Ubuntu 18.04  
Apache or nginx version _(eg, Apache 2.4.25)_: Apache2 2.4.29  
PHP version _(eg, 7.1)_: PHP 7.2.15-0ubuntu0.18.04.1  
Browser: Chrome on Windows Version 72.0.3626.109 (Official Build) (64-bit)

The issue you are facing:  
Entering an apostrophe character in the “slogan” theming dialog renders a character code in the About box instead of the character.

Is this the first time you’ve seen this error? _(Y/N)_: Y

Steps to replicate it:

1. Enter an apostrophe in the slogan box : “Myco’s filing cabinet”  
 ![image](https://help.nextcloud.com/uploads/default/original/2X/1/16733bb5af235252cc03539f90a94c10328839ef.png)
2. Open the About box  
 ![image](https://help.nextcloud.com/uploads/default/original/2X/b/b7b2438734c7e2374433b20cb36453d8fca3a16c.png)

If you want any of the further config/logs, let me know.

```auto
MariaDB [nextcloud]> select * from oc_appconfig where appid="theming" AND configkey="slogan";
+---------+-----------+------------------------+
| appid | configkey | configvalue |
+---------+-----------+------------------------+
| theming | slogan | Newco's filing cabinet |
+---------+-----------+------------------------+
1 row in set (0.00 sec)

```

---

<div class="post-metadata">

**Author:** ![peteman52](https://help.nextcloud.com/user_avatar/help.nextcloud.com/peteman52/32/13559_2.png) [@peteman52](https://help.nextcloud.com/u/peteman52)\
**Post date:** [February 19, 2019, 4:26pm UTC](https://help.nextcloud.com/t/theming-slogan-encoding-issue/47915/2 "2019-02-19T16:26:07Z")

</div>

The slogan is stored in the database table oc\_appconfig, appid = “theming”, configkey = “slogan”.  
You should have a look how it is stored there.

---

<div class="post-metadata">

**Author:** ![fishter](https://help.nextcloud.com/letter_avatar/fishter/32/6_449c533f586939b6e5f246632a46421f.png) [@fishter](https://help.nextcloud.com/u/fishter)\
**Post date:** [February 19, 2019, 4:43pm UTC](https://help.nextcloud.com/t/theming-slogan-encoding-issue/47915/3 "2019-02-19T16:43:59Z")

</div>

It looks OK in there. I guess the issue is on the rendering side. It’s also messed up when I go back to the Settings page to edit. Maybe the read from the database isn’t handling it nicely.

---

<div class="post-metadata">

**Author:** ![peteman52](https://help.nextcloud.com/user_avatar/help.nextcloud.com/peteman52/32/13559_2.png) [@peteman52](https://help.nextcloud.com/u/peteman52)\
**Post date:** [February 19, 2019, 4:50pm UTC](https://help.nextcloud.com/t/theming-slogan-encoding-issue/47915/4 "2019-02-19T16:50:29Z")

</div>

Try to escape the ’ =\> \’ in the database table.

---

<div class="post-metadata">

**Author:** ![anon99283430](https://help.nextcloud.com/letter_avatar/anon99283430/32/6_449c533f586939b6e5f246632a46421f.png) [@anon99283430](https://help.nextcloud.com/u/anon99283430)\
**Post date:** [February 19, 2019, 4:56pm UTC](https://help.nextcloud.com/t/theming-slogan-encoding-issue/47915/5 "2019-02-19T16:56:45Z")

</div>

I can confirm this issue when using double-quotes in the slogan.  
They are shown as `&quot;` on the about dialog, but on the login page everything is fine.

Nextcloud Version: 15.0.4  
PHP: 7.2.14  
MySQL: 5.7.23

---

<div class="post-metadata">

**Author:** ![fishter](https://help.nextcloud.com/letter_avatar/fishter/32/6_449c533f586939b6e5f246632a46421f.png) [@fishter](https://help.nextcloud.com/u/fishter)\
**Post date:** [February 19, 2019, 5:01pm UTC](https://help.nextcloud.com/t/theming-slogan-encoding-issue/47915/6 "2019-02-19T17:01:17Z")

</div>

Using a single \ makes no difference. in the database  
Using triple \ gives me a slash on the displayed output in addition to the 'and a single slash in the database.

```auto
MariaDB [nextcloud]> update oc_appconfig SET configvalue="Newco\'s filing cabinet" where oc_appconfig.appid="theming" AND oc_appconfig.configkey="slogan";
Query OK, 0 rows affected (0.01 sec)
Rows matched: 1 Changed: 0 Warnings: 0

MariaDB [nextcloud]> select * from oc_appconfig where appid="theming" AND configkey="slogan";
+---------+-----------+------------------------+
| appid | configkey | configvalue |
+---------+-----------+------------------------+
| theming | slogan | Newco's filing cabinet |
+---------+-----------+------------------------+
1 row in set (0.00 sec)

MariaDB [nextcloud]> update oc_appconfig SET configvalue="Newco\\\'s filing cabinet" where oc_appconfig.appid="theming" AND oc_appconfig.configkey="slogan";
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0

MariaDB [nextcloud]> select * from oc_appconfig where appid="theming" AND configkey="slogan";
+---------+-----------+-------------------------+
| appid | configkey | configvalue |
+---------+-----------+-------------------------+
| theming | slogan | Newco\'s filing cabinet |
+---------+-----------+-------------------------+
1 row in set (0.00 sec)

MariaDB [nextcloud]>

```

---

<div class="post-metadata">

**Author:** ![peteman52](https://help.nextcloud.com/user_avatar/help.nextcloud.com/peteman52/32/13559_2.png) [@peteman52](https://help.nextcloud.com/u/peteman52)\
**Post date:** [February 19, 2019, 5:06pm UTC](https://help.nextcloud.com/t/theming-slogan-encoding-issue/47915/7 "2019-02-19T17:06:55Z")

</div>

You may try a double backslash too but I fear it’s a problem with the Nextcloud-code, which handles such cases seemingly incorrectly.

---

<div class="post-metadata">

**Author:** ![anon99283430](https://help.nextcloud.com/letter_avatar/anon99283430/32/6_449c533f586939b6e5f246632a46421f.png) [@anon99283430](https://help.nextcloud.com/u/anon99283430)\
**Post date:** [February 19, 2019, 5:53pm UTC](https://help.nextcloud.com/t/theming-slogan-encoding-issue/47915/8 "2019-02-19T17:53:53Z")

</div>

That’s my guess too, I will create an issue when I’m back at my PC.

---

<div class="post-metadata">

**Author:** ![anon99283430](https://help.nextcloud.com/letter_avatar/anon99283430/32/6_449c533f586939b6e5f246632a46421f.png) [@anon99283430](https://help.nextcloud.com/u/anon99283430)\
**Post date:** [February 19, 2019, 6:53pm UTC](https://help.nextcloud.com/t/theming-slogan-encoding-issue/47915/9 "2019-02-19T18:53:36Z")

</div>

There already was an issue about this misbehaviour:

> <https://github.com/nextcloud/server/issues/7460>

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 9:22am UTC](https://help.nextcloud.com/t/theming-slogan-encoding-issue/47915/10 "2024-12-04T09:22:30Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 11, 2024, 2:28pm UTC](https://help.nextcloud.com/t/theming-slogan-encoding-issue/47915/11 "2024-12-11T14:28:59Z")

</div>


