ZenphotoCMS Forum
'' in search/tag url with new version? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: '' in search/tag url with new version? (/thread-10365.html)



'' in search/tag url with new version? - fuzzi - 04-09-2012

Hi,

i updated to 1.4.3.2 and i saw that the tag
urls were changed from

/page/search/tags/Clouds

to

/page/search/tags/%27Clouds%27

Is there a way to switch back to the old urls?
I have a lot of links coming to my tag pages with the old url-structure.

Thanks for your help!




'' in search/tag url with new version? - acrylian - 04-09-2012

This is a search option. If you have tags of several words they need to be enclosed in quotes (Which is what you see above).




'' in search/tag url with new version? - sbillard - 04-09-2012

The old URLs should still work, this is happening only on new URLs. You can also try switching to the PDO MySQL database handler. The quotes are caused by using the db_Quote function. PDO MySQL seems to be less "conservative".




'' in search/tag url with new version? - fuzzi - 04-09-2012

Thanks for your help. Actually, all words are enclosed in quotes on my installation, also single words.




'' in search/tag url with new version? - sbillard - 04-09-2012

This is caused by a poor choice of coding in the tag handling function. It uses the db_quote() function to present the tag where it should have used the search_quote() function (since tags are basically search elements.)

I believe the quickest solution would be for you to select the PDO_MySQL database as I believe that its quote handling does not place quotes around Alpha Numeric strings.

Or you can install the nightly build after tonight where the proper function has been inserted.




'' in search/tag url with new version? - fuzzi - 05-09-2012

ok, thanks ill wait for the nightly release