Announcement

#1 2014-10-17 12:04:10

matthys
Member
2014-04-02
188

Handling special charachers in file name

Hi there,

Just upgraded from 2.6.3 to 2.7.0 to 2.7.1 and I noticed some changes in how special characters are handled when uploading a file/photo.

For example "Heroes' Square" became "Heroes\' Square".
If I download the file it looks okay with the same name.
I only have to adjust the name manually in the title.
Is there any way to avoid this (manually renaming title) at all?

PS .. I noticed that in the 2.6.3 version the ' was stripped: "Heroes' Square" became "Heroes Square"

Is there a new option, because I do not see the ' in $conf['sync_chars_regex']?

Thanks,
Matthijs

Offline

 

#2 2014-10-17 12:09:03

flop25
Piwigo Team
2006-07-06
7037

Re: Handling special charachers in file name

Hello
that sounds more like an issue in escaping/unescaping ' and " which are delimiters in informatics
but I'm surprised; nothing has changed on that side
please reupload all files by overwriting exisiting ones
then if it still appears, tell us exactly where; check inside administation, on the public side the tooltip of thumbnails etc
thx


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2014-10-17 12:33:19

matthys
Member
2014-04-02
188

Re: Handling special charachers in file name

Okay .. I just notice the old file was original without the ' character.

(2.6.3 - org filename: 20010904-80 Fiakers at Heldenplatz (Heroes Square) - Vienna (Austria).jpg)
    Original file : 20010904-80 Fiakers at Heldenplatz (Heroes Square) - Vienna (Austria).jpg
    Posted 4 months ago on 31 May 2014
    Added by admin
    1280×1024 pixels, 0.19MB
    Visited 33 times
    Numeric identifier : 337

(2.7.1 - org filename: 20050630-006 Fiakers at Heldenplatz (Heroes' Square) - Vienna (Austria).jpg)
    Original file : 20050630-006 Fiakers at Heldenplatz (Heroes\' Square) - Vienna (Austria).jpg
    Posted 42 minutes ago on 17 October 2014
    Added by admin
    2288×1712 pixels, 0.73MB
    Visited 3 times
    Numeric identifier : 1392

The question I now have, why is the ' handled/displayed as \' when its not mentioned in the $conf['sync_chars_regex']?

I guess I just have to avoid the ' character at all times.
Will remove the file/photo and upload again without the ' character.

PS .. I noticed that as tag the ' is removed in the url, but no problems to display correct tag:
Home / Tag Heroes' Square -> http://www.vanwageningen.net/index/tags … oes_square

PS .. thanks for your quick reply ;-)

Last edited by matthys (2014-10-17 12:39:51)

Offline

 

#4 2014-10-17 12:57:39

flop25
Piwigo Team
2006-07-06
7037

Re: Handling special charachers in file name

using your link I don\'t see any backslash

ps: joke above


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

Board footer

Powered by FluxBB

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