Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

URL forward parameters doesn't work with %26
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4019
Page 1 of 1

Author:  mucikiki [ 29. Jan 2016, 13:05 ]
Post subject:  URL forward parameters doesn't work with %26

Hi,

I found a strange behavior:

if I pass the string "serena & ferraro" and I encode it, the link is:
http://www.presentazioni.eu/ordine/titolo=serena+%26+ferraro

and everything is fine.

But if I pass "serena&ferraro" with the link:
http://www.presentazioni.eu/ordine/titolo=serena%26ferraro

it doesn't work, I only retrieve titolo=serena

Is there a workaround for this?

Thank you for your help!

Alessandro

Author:  TinyWebGallery [ 29. Jan 2016, 14:18 ]
Post subject:  Re: URL forward parameters doesn't work with %26

The + is the only difference?

Have you aready tried the alternative was by using
titolo={query-titolo}
this the alternative way of the pro version to extract parameters and add them to the iframe url.

But normally this should not make a difference here

I always decode parameters completely and encode them once when there is a character which is
not on my whitelist. Maybe here is the problem.

& is normally not encoded again. Therefore I think I add
titolo=serena&ferraro at the iframe.

You would have to remove the & from my whitelist...

Best, Michael

Author:  mucikiki [ 29. Jan 2016, 15:19 ]
Post subject:  Re: URL forward parameters doesn't work with %26

Yes, the problem is only when & is alone, if there are white spaces after and before is ok.

I don't know the titolo={query-titolo} alternative, could you tell me what I have to do to use it?

How can I remove the & from your whitelist? I don't find it in the settings page, maybe is it in the php code?

Thank you!

Alessandro

Author:  TinyWebGallery [ 29. Jan 2016, 16:42 ]
Post subject:  Re: URL forward parameters doesn't work with %26

Open advanced-iframe.php. look for
"function param"

there you see a regex
'/^[\.@a-zA-Z0-9À-ÖØ-öø-ÿ\/\:\&\?\-\|\)\(]*$/'

remove the \&

-> retry.

The other way also uses this function. So I think there is no difference.

Best, Michael

Author:  mucikiki [ 1. Feb 2016, 13:08 ]
Post subject:  Re: URL forward parameters doesn't work with %26

Hi Michael,

it works! I hope there are no problems in removing the &, can I ask you why you added it in that list?

If there will be updates in the plugin, should I repeat this workaround? Or the file advanced-iframe.php will remain the same?

Thank you for you help,

Alessandro

Author:  TinyWebGallery [ 1. Feb 2016, 14:09 ]
Post subject:  Re: URL forward parameters doesn't work with %26

I have removed this in 7.0.2 also as this makes more sense this way.

Best, Michael

Author:  mucikiki [ 1. Feb 2016, 14:16 ]
Post subject:  Re: URL forward parameters doesn't work with %26

I have version 5.10 in my Wordpress, it seems that there are no updates available. I missed something or is it correct?

Alessandro

Author:  TinyWebGallery [ 1. Feb 2016, 14:20 ]
Post subject:  Re: URL forward parameters doesn't work with %26

5.10 ?

on Wordpress.org is 6.5.6 and on CodeCanyon already 7.0.1.

Best, Michael

Author:  mucikiki [ 1. Feb 2016, 16:38 ]
Post subject:  Re: URL forward parameters doesn't work with %26

Yes, because on Wordpress there is only the free 6.5.6 version, but I have the Pro version, so I think that if I download that version I lost the Pro features, right?

Alessandro

Author:  TinyWebGallery [ 1. Feb 2016, 16:51 ]
Post subject:  Re: URL forward parameters doesn't work with %26

The current pro version is 7.0.1:
https://1.envato.market/j6DgM

Best, Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/