Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 29. Mar 2024, 00:36

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: 29. Jan 2016, 13:05 
Offline

Joined: 12. Oct 2014, 19:54
Posts: 11
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


Top
 Profile  
 
PostPosted: 29. Jan 2016, 14:18 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
PostPosted: 29. Jan 2016, 15:19 
Offline

Joined: 12. Oct 2014, 19:54
Posts: 11
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


Top
 Profile  
 
PostPosted: 29. Jan 2016, 16:42 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
PostPosted: 1. Feb 2016, 13:08 
Offline

Joined: 12. Oct 2014, 19:54
Posts: 11
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


Top
 Profile  
 
PostPosted: 1. Feb 2016, 14:09 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I have removed this in 7.0.2 also as this makes more sense this way.

Best, Michael


Top
 Profile  
 
PostPosted: 1. Feb 2016, 14:16 
Offline

Joined: 12. Oct 2014, 19:54
Posts: 11
I have version 5.10 in my Wordpress, it seems that there are no updates available. I missed something or is it correct?

Alessandro


Top
 Profile  
 
PostPosted: 1. Feb 2016, 14:20 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
5.10 ?

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

Best, Michael


Top
 Profile  
 
PostPosted: 1. Feb 2016, 16:38 
Offline

Joined: 12. Oct 2014, 19:54
Posts: 11
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


Top
 Profile  
 
PostPosted: 1. Feb 2016, 16:51 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
The current pro version is 7.0.1:
https://1.envato.market/j6DgM

Best, Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 28 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy