Config.php has double backslashes

I have NC13 and I noticed today that my config/config.php file has double slashes all over:

'memcache.local' => '\\OC\\Memcache\\APCu',

and

1 => 'OC\\Preview\\JPEG',

Can anyone else see this?

Don’t worry. That is correct. The backslashes need to be escaped resulting in double slashes.

1 Like

I was worred! The docs say to use single slashes https://docs.nextcloud.com/server/13/admin_manual/configuration_server/config_sample_php_parameters.html?highlight=file%20access%20control#previews

Yes - the second slash is automatically added from Nextcloud.