Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

bug in nested {strip}...{/strip}

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
philipp
Smarty n00b


Joined: 03 Oct 2003
Posts: 1

PostPosted: Fri Oct 03, 2003 3:07 am    Post subject: bug in nested {strip}...{/strip} Reply with quote

Hi,

using Smarty 2.5.0 with PHP 4.3.3

There seems to be a problem in the RegEx (i guess at least it is using a regular expression...) when using nested {strip}...{strip} tags.
It's certainly not desirable to have strip tags nested, but possible...
smarty will print out a "plain" {/strip} back to the browser.

please see the attached (dummy) code for an example.
Otherwise: keep up the great work!

Regards,

Philipp


Code:

{strip}
                    <td width={#rightAdvertisingWidth#} valign="top">
                    <!-- Login form -->
                    {strip}
                    <table border="0" cellspacing="0" cellpadding="0" width="100%">
                      <form method="POST" action="/user/login/_/1">
                      <tr>
                     {/strip}
                        <td class="loginBoxHeading">login</td>
                        <td class="loginBoxHeading" align="right"><img src="/images/menu_arrowsde.gif" border="0" hspace="0" vspace="0"></td>
                      </tr>
                      <tr>
                        <td class="loginBox">Benutzername<br>{myhtml_input class="loginBoxInput" name="user" vals=$VALS size="17"}</td>
                        <td class="loginBox">&</td>
                      </tr>
                      <tr>
                        <td class="loginBox">
                          Passwort<br>
                          {myhtml_input class="loginBoxInput" name="password" type="password" size="17"}
                        </td>
                        <td class="loginBox" valign="bottom" align="right">
                          <input type="image" name="submit" src="/images/login_button.gif" border="0" hspace="0" vspace="0">
                        </td>
                      </tr>
                      </form>
                    </table>
                    <!-- /Login form -->

                                        
                    <img src="/images/ads/right_hand.jpg" border="0">
                    </td>
{/strip}
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Mon Oct 06, 2003 5:49 pm    Post subject: Reply with quote

this is fixed in cvs.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP