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 26. Apr 2024, 20:42

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  [ 11 posts ] 
Author Message
PostPosted: 12. Oct 2014, 20:01 
Offline

Joined: 12. Oct 2014, 19:54
Posts: 11
Hi Michael,

I bought you Pro version, there is a problem in the variables that I include in the URL. If the value contains:

' it is transform in \'
" in \"

If I do the same with the orginal page there is no problem, so I think it is caused by the plugin. What could I do?

Thank you for your help!

Ale


Top
 Profile  
 
PostPosted: 12. Oct 2014, 20:15 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Do you talk about ' or " inside the src attribute?

They are escaped with esc_url because otherwise I cannot enter them into the iframe parameter.

Can you give an example because e.g. <iframe src="http://ddd.ccc/?param=as"df"> would be invalid...

Best,
Michael


Top
 Profile  
 
PostPosted: 12. Oct 2014, 20:24 
Offline

Joined: 12. Oct 2014, 19:54
Posts: 11
Sure, for example in this case you see the correct one:

xxx

As you can see:
D'Onofrio
Centro "Sorriso"

If I insert this page in the frame I see this:

xxx

Now it is:
D\'Onofrio
Centro \"Sorriso\"


Last edited by mucikiki on 13. Oct 2014, 02:05, edited 1 time in total.

Top
 Profile  
 
PostPosted: 12. Oct 2014, 20:33 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Do you enter it in the administration or the src attribut?

Because in the administration I do the escaping because of securtiy reasons.
Best, Michael


Top
 Profile  
 
PostPosted: 12. Oct 2014, 20:41 
Offline

Joined: 12. Oct 2014, 19:54
Posts: 11
Hi insert the code in the page:

[advanced_iframe securitykey="xxx" src="xxx"]

Did you refer to this?

Ale


Last edited by mucikiki on 13. Oct 2014, 02:06, edited 1 time in total.

Top
 Profile  
 
PostPosted: 12. Oct 2014, 20:58 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
o.k. - if you foreward url parameters I do url encode them also.

If you don't want this you need to modify

function param in advanced_iframe.php.

and return the value directly.


Top
 Profile  
 
PostPosted: 12. Oct 2014, 21:07 
Offline

Joined: 12. Oct 2014, 19:54
Posts: 11
Thank you for your help.

I don't understand what you want to say in "if you forward url parameters I do url encode them also."

In my code I'm using the command urlencode so I think that the url parameters are encoded.

Or do you refer something different?


Top
 Profile  
 
PostPosted: 12. Oct 2014, 21:42 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
All parameters for url_forward_parameter are decoded and encoded again. This might not be the best way for your purpose.
So you might check the function I have written and return the value directly.

Best, Michael


Top
 Profile  
 
PostPosted: 12. Oct 2014, 22:16 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Maybe the server where you have the parent does the escaping! If this is the case you need to unescape the values.

You need to use stripcslashes than. Check if you have set magic_quotes_gpc "on" on your server...

Best, Michael


Top
 Profile  
 
PostPosted: 13. Oct 2014, 02:08 
Offline

Joined: 12. Oct 2014, 19:54
Posts: 11
Great!

You're right, I resolved everything using stripslashes in my code, so I don't modify your file but my ones!

Thank you very much for your help!

Ale


Top
 Profile  
 
PostPosted: 13. Oct 2014, 09:22 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
great.

Best, Michael


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 31 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