• Resolved tekvsakdan

    (@tekvsakdan)


    We are using free version of Advanced iframe for couple of years. We are using url_forward_parameter=”ALL” and after upgrade to version 2020 it only takes the first parameter. Also if we use url_forward_parameter=”par1,par2,par3″, it always take only the first parameter. Can you fix this?

    Example:
    [advanced_iframe width="100%" height="900" src="https://subdomain.domain.com" url_forward_parameter="ALL"]

    or
    [advanced_iframe width="100%" height="900" src="https://subdomain.domain.com" url_forward_parameter="par1,par2,par3"]

    This creates iframe with only the first parameter
    <iframe id="advanced_iframe" name="advanced_iframe" src="https://subdomain.domain.com?par1=xxxx" width="900px"

    • This topic was modified 4 years, 9 months ago by tekvsakdan.
    • This topic was modified 4 years, 9 months ago by tekvsakdan.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author mdempfle

    (@mdempfle)

    I will take a look tonight. I have not changed anything here for a long time but you never know ;).

    Plugin Author mdempfle

    (@mdempfle)

    I just did some tests:

    with
    https://localhost/wordpress/all/?par1=true&par2=true&par3=true

    and
    url_forward_parameter=”par1,par2,par3″

    I get:
    src=”//www.tinywebgallery.com/blog/advanced-iframe?par1=true&par2=true&par3=true”

    In my local setup.

    So it works like expected. I tried the free and the pro version.

    You have a url I can test by myself?

    Best, Michael

    Thread Starter tekvsakdan

    (@tekvsakdan)

    I reinstall the plugin, version 2020, without any success.

    This is what is in the page:
    [advanced_iframe width="100%" height="900" src="https://gesla.govedo.si" url_forward_parameter="ALL"]

    This is the link. The second parameter is ignored.

    https://www.govedo.si/ponastavitev-gesla/index.php?action=resetbytoken&token=1254fsdfjksde236523

    Thread Starter tekvsakdan

    (@tekvsakdan)

    After an investigation I found out the problem is the parameter name “token”. I checked WP reserved words and the word “token” is not among them. If i change “token” for example to “t0ken” it works as expected.

    Plugin Author mdempfle

    (@mdempfle)

    But it is good if it not a reserved word.

    I think it is the combination.
    resetbytoken + token
    most likely because on is a substring of the other.

    I will check if maybe my filter thinks the parameter is already attached because of this.
    I let you know.

    Plugin Author mdempfle

    (@mdempfle)

    Found the problem. I was checking duplicate parameters with “contains” only. So your tocken was already existing in “resetbytoken”.

    I will update this in the next version that only the whole parameter is checked and not only a simple contains.
    As a workaround simply rename the resetbytoken to e.g. reset –

    Best, Michael

    Thread Starter tekvsakdan

    (@tekvsakdan)

    Thanks. I have solved this simply by changing the order of parameters. First “token” and then “action”.

    Plugin Author mdempfle

    (@mdempfle)

    Also good.

    In the next update it then does not matter anymore.

    Best, Michael

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘url_forward_parameter takes only first paramter’ is closed to new replies.