Announcement

#1 2024-03-15 11:30:07

Crythes
Member
2020-01-23
112

Allowing special characters during sync - fine or use with caution?

Hello/Hi/Greetings,

We can edit which special characters are allowed during sync in the LocalFilesEditor by adding the following line:

$conf['sync_chars_regex'] = ....

I think it's great that we have this option. However, can we really use any character or is it possible that it might break something?

Ok so I think if I add a single escaped quote (\') I get an SQL error during sync.

Piwigo URL: http://

Last edited by Crythes (2024-03-15 11:39:50)

Offline

 

#2 2024-03-15 18:11:48

erAck
Only trying to help
2015-09-06
2091

Re: Allowing special characters during sync - fine or use with caution?

Read the sync_chars_regex documentation in include/config_default.inc.php starting at line 865.
And yes, you can not add the ' apostrophe character, not even escaped.


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact