• Resolved brown2235


    [wbcr_php_snippet id=”XXX” my_type=[sanitized_url]]

    When I try to pass the url to the php snippet
    all dots are replaced with dashes (.com -> -com)

    urlencode, rawurlencode, htmlentities all produce the same result.

    Any suggestions on how to fix?

Viewing 4 replies - 1 through 4 (of 4 total)
    • This reply was modified 2 years, 1 month ago by ssx95351.
    Plugin Author webcraftic


    I’m sorry, I needed to update other plugins. Now I’m back to you and can help you.

    That the massaging of the values is happening because of the line:
    $attr = array_map(‘sanitize_title’, $attr);
    in wp-content/plugins/insert-php/includes/shortcodes.php. You can comment that line out, and the custom attribute values will not be changed.

    In the next update and fix this problem in the plugin.

    Best regards, Alex

    before sending the value to the shortcode, using encodeURIComponent(val).replace(/\./g, ‘%2E’); fixes the issue. Will the next update stop this from working? Thanks.

    Plugin Support Serg


    Yes, you code will be working after the plugin update. We consider codes like yours in our releases.

    Best regards, Serg

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Passing URL in Shortcode’ is closed to new replies.