Notifications
Clear all

URL Parameters

14 Posts
4 Users
0 Likes
221 Views
TinyWebGallery
Posts: 686
Admin
(@admin)
Honorable Member
Joined: 13 years ago

Still I use the default WordPress way to encode urls: esc_url 

Normally browsers handle this properly as src in iframes. I have this everywhere in my demos and there it works fine. I need to check your example tomorrow as today I do not have time anymore.

Best regards,

Michael

Reply
TinyWebGallery
Posts: 686
Admin
(@admin)
Honorable Member
Joined: 13 years ago

Hi,

I tested and when I pass ?authorize=8QSDNU&units=1,3,9,12,16 to a testpage then the _GET variable does contain 

[authorize] => 8QSDNU
[units] => 1,3,9,12,16

So this looks fine for me. 

The url is example_fixed.php?authorize=8QSDNU&units=1%2C3%2C9%2C12%2C16 in the code itself. 

So how is the page parsed? Maybe the url is not parsed how it should be...

Best regards,

Michael

Reply
TinyWebGallery
Posts: 686
Admin
(@admin)
Honorable Member
Joined: 13 years ago

If you like you can remove the encoding to test if it makes a difference. 

go to advanced-iframe/includes/advanced-iframe-main-iframe.php -> search for

esc_url(trim($src))
and replace it with
trim($src)

Best regards, Michael

Reply
Posts: 4
Topic starter
(@sykesk01)
New Member
Joined: 3 months ago

Thanks Michael, I'll have a play and contact the guys who provide the weather station url. You have been very helpful and that is much appreciated 👍

Reply
TinyWebGallery
Posts: 686
Admin
(@admin)
Honorable Member
Joined: 13 years ago

You are welcome

Reply
Page 2 / 3