Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [Alex] File include in Global Vars?

Quote Reply
Re: [Alex] File include in Global Vars? In reply to
Alex,

The template parser would not need to know very much about the globals.
The sub { ...perl code... } information could be used to find the perl code parts in globals and
ignore parsing of anything between sub { and }, therefore I don't aggree with you,
that there is security leak using the way I suggested here.


Quote:
This would add a significant overhead as every global would need a separate call through GT::Template->parse. I can see the use for it in some cases, but I think the performance hit is too great.
Yes, I aggree with you about the performance hit. It is only worth to implement parsing of globals, if the performance will be not affected very much.
But I think, ignoring the sub { ...perl code... } in globals would not affect performance very much, just a bit. And remember globals means mostly small strings, especially if we ignore the perl code parts...

In addition, if you add the Global parsing feature option which make possible to turn off parsing of globals, then users could decide themself, if they need to use this feature or not.
Because the performance thing we discussed, I suggest the Global parsing feature option
to be turned OFF by default.

Let me know your opinion.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Subject Author Views Date
Thread File include in Global Vars? webmaster33 3790 Apr 28, 2002, 4:40 PM
Thread Re: [webmaster33] File include in Global Vars?
Jagerman 3715 Apr 28, 2002, 6:24 PM
Thread Re: [Jagerman] File include in Global Vars?
webmaster33 3651 Apr 29, 2002, 5:13 AM
Thread Re: [webmaster33] File include in Global Vars?
Paul 3661 Apr 29, 2002, 5:43 AM
Thread Re: [Paul] File include in Global Vars?
webmaster33 3662 Apr 29, 2002, 6:15 AM
Thread Re: [webmaster33] File include in Global Vars?
Paul 3622 Apr 29, 2002, 6:56 AM
Thread Re: [Paul] File include in Global Vars?
webmaster33 3636 Apr 29, 2002, 8:25 AM
Post Post deleted by Paul
Paul 3667 Apr 29, 2002, 9:12 AM
Post Re: [Paul] File include in Global Vars?
webmaster33 3631 Apr 29, 2002, 10:01 AM
Thread Re: [webmaster33] File include in Global Vars?
Alex 3593 Apr 29, 2002, 12:01 PM
Thread Re: [Alex] File include in Global Vars?
webmaster33 3583 Apr 29, 2002, 1:49 PM
Thread Re: [webmaster33] File include in Global Vars?
Paul 3595 Apr 29, 2002, 1:54 PM
Thread Re: [Paul] File include in Global Vars?
webmaster33 3634 Apr 29, 2002, 2:10 PM
Thread Re: [webmaster33] File include in Global Vars?
Alex 3585 Apr 29, 2002, 3:23 PM
Post Re: [Alex] File include in Global Vars?
webmaster33 3582 Apr 29, 2002, 4:04 PM