ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Problem with urlencoding

September 30, 2011 4:09am

Subscribe [2]
  • #1 / Sep 30, 2011 4:09am

    Henrik Eklund

    34 posts

    Hi,

    At a client site, we receive external parameters from another system. The URL may look like this:

    <a href="http://www.kontorsfixarna.se/index.php/forms/cv/id/wkO%">http://www.kontorsfixarna.se/index.php/forms/cv/id/wkO%</a> 2FfSScIlY= (notice the space to avoid slashes in this example)

    The fourth segment is used to retrieve an external page using an iframe ... The problem is that as soon as it occurs % 2F in the fourth segment, it will be a 404. Have you guys seen this problem before?

    EE 2.2.2

    Thanks, Henrik

  • #2 / Sep 30, 2011 11:40am

    Henrik Eklund

    34 posts

    No one?

  • #3 / Sep 30, 2011 4:23pm

    Lisa Wess

    20502 posts

    Hi, Henrik -

    Do you have 404s and Strict URLs on?  Also, can you show us your template code?  I’m specifically interested in any channel entries tags and the code inside of them.

    Thank you!

  • #4 / Oct 01, 2011 7:50am

    Henrik Eklund

    34 posts

    Edit: you can close this one. Turned out it was a Apache configuration thing… Thanks!

    Do you have 404s and Strict URLs on?

    Yes, also tried with non strict…

    Also, can you show us your template code?  I’m specifically interested in any channel entries tags and the code inside of them.

    Sure

    {embed="layout/top" my_title="Registrera användare" js="external"}
       
    <div class="main-content">
    
        
        <div id="main-column">
          
         <div class="lista">
          <iframe id="shopWindow" name="shopWindow" scrolling="no" width="600" height="1000"      src="http://portal.kontorsfixarna.intelliplan.eu/WebCV/Registration?id={segment_4}" marginheight="0" frameborder="0" marginwidth="0"></iframe>
         </div>
        </div>
        
        <div id="right-column">
         <h2 class="ads">Aktuella tjänster</h2>
         <ul class="ads-current">
         {exp:channel:entries channel="annonser" limit="5" dynamic="off" disable="categories|category_fields|member_data|pagination"}
          <li><a href="http://{url_title_path=annons}">{title}, {annons-region}</a></li>
         {/exp:channel:entries}
         </ul>
        </div>
        
        <div class="clear"></div>
        
       </div>
       
       
       <div class="customers-wrapper">
        <div class="customers">
         <div class="images">
          {exp:channel:entries channel="sida" dynamic="off" entry_id="766" status="osynlig" limit="1"}
           {body}
          {/exp:channel:entries}
         </div>
         <div class="clear"></div>
        </div>
        <div class="clear"></div>
       </div>
       
       {embed="layout/footer"}
       
      </div>
    {google}


    Thank you!

    /Henrik

  • #5 / Oct 03, 2011 11:07am

    Mark Bowen

    12637 posts

    Hi Henrik,

    Glad you got this sorted. Thanks for letting us know.

    If anything else crops up then please don’t hesitate to post again as needed.

    Thanks,

    Mark

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases