[Mason] Cleaning arguments before they are handed to components...

2011-06-06 Thread Shane McCarron
ideas? Or, better yet, is there some option that I can just enable that would do magic CGI parameter cleaning? -- Shane McCarron halindr...@gmail.com -- Simplify data backup and recovery for your virtual environment

Re: [Mason] Cleaning arguments before they are handed to components...

2011-06-07 Thread Shane McCarron
::is_utf8($arg) || utf8::decode($arg); >} >return; > } > > 1; > > > On 6 Jun 2011, at 4:42 PM, Shane McCarron wrote: > > I had a user report that, in some circumstances, it is possible to supply > > weird parameters on a request to my Mason app

Re: [Mason] "Use of uninitialized value in lc at /www/perl/lib/site_perl/5.14.2/HTML/Mason/ApacheHandler.pm line 914."

2011-10-20 Thread Shane McCarron
t; Take a complimentary Learning@Ciosco Self-Assessment and learn > about Cisco certifications, training, and career opportunities. > http://p.sf.net/sfu/cisco-dev2dev > ___ > Mason-users mailing list > Mason-users@lists.sourceforge.net > ht

Re: [Mason] Mason2: no default HTML escaping

2012-03-06 Thread Shane McCarron
I would prefer number two plus strong documentation encouraging the use of the feature. Especially for newbies. On Mar 6, 2012 6:13 PM, "Jonathan Swartz" wrote: > I hear your concerns. So I'm not sure which of these you are suggesting: > 1) Substitution tags should be HTML-escaped by default in M

Re: [Mason] Mason tidy

2012-09-14 Thread Shane McCarron
? > Most devs has no idea what their production app looks like. > Find out how fast your code is with AppDynamics Lite. > http://ad.doubleclick.net/clk;262219671;13503038;y? > http://info.appdynamics.com/FreeJavaPerformanceDownload.html &

Re: [Mason] Mason tidy

2012-09-14 Thread Shane McCarron
k! On Fri, Sep 14, 2012 at 2:35 PM, Shane McCarron wrote: > It looks as if there is a Capture::Tiny prerequisite missing from the > package? > > > On Fri, Sep 14, 2012 at 1:06 AM, Pedro Melo wrote: > >> Hi, >> >> On Fri, Sep 14, 2012 at 4:23 AM, Jonathan Swar

Re: [Mason] Mason tidy

2012-09-14 Thread Shane McCarron
On Fri, Sep 14, 2012 at 4:04 PM, Jonathan Swartz wrote: > > On Sep 14, 2012, at 1:41 PM, Shane McCarron wrote: > > Also it looks like there is a Test::Class dependency that was undeclared. > > > 2.5.1 depends on Test::Class::Most, that should do it? But I've added >

Re: [Mason] Mason tidy

2012-09-21 Thread Shane McCarron
ws machine the generated .bat file works >>fine, but the generated native perl has the wrong #! line in it. Not sure >>if there is a way to fix that, but if there is then it would work right >>when called from a Cygwin shell on Windows (I use that for a development

[Mason] Weird run time error message

2012-11-13 Thread Shane McCarron
ting there quietly. We don't have them timeout as far as I know. However, I do see that this particular file was regenerated around the time the error was thrown. Thoughts? -- Shane McCarron halindr...@gmail.com

[Mason] Problem building HTML::Mason 1.52

2014-01-16 Thread Shane McCarron
Y" (Missing operator before SCHILY?) Number found where operator expected at ./Makefile.PL line 7, near "18" (Missing semicolon on previous line?) Bareword found where operator expected a

Re: [Mason] Problem building HTML::Mason 1.52

2014-01-21 Thread Shane McCarron
clktrk > ___ > Mason-users mailing list > Mason-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mason-users > -- Shane McCarron halindr...@gmail.com ---

[Mason] Best Practices question

2014-03-13 Thread Shane McCarron
to, for example, inject scripts into a page. Normally I don't care. These applications are not exposed to the outside world. But is there a nice, simple way that people are sanitizing their Mason arguments on the way in to reduce the risk of this sort of thing? -- Shane McCarron ha

[Mason] Bizarre unicode behavior in mod_perl vs CGI

2014-03-19 Thread Shane McCarron
p me out it would be good to have a simple test case, but there is very little that is simple about this environment. I was hoping someone might have seen this before and have a simple hint. Meanwhile, I will continue to rip my hair out. -- Shane McCarron halindr..

Re: [Mason] Bizarre unicode behavior in mod_perl vs CGI

2014-03-20 Thread Shane McCarron
is problem. On Thu, Mar 20, 2014 at 1:40 AM, Guido Brugnara wrote: > Il 19/03/2014 22:14, Shane McCarron ha scritto: > > (This message is about Mason 1.) > > But this ONLY happens when $m->out sends the data out via mod_perl. > > When in CGI mode it is perfec

Re: [Mason] Bizarre unicode behavior in mod_perl vs CGI

2014-03-21 Thread Shane McCarron
py I can ship a solution to my very crabby customer. On Fri, Mar 21, 2014 at 8:17 AM, <7egg...@gmx.de> wrote: > On Wed, 19 Mar 2014, Shane McCarron wrote: > > > (This message is about Mason 1.) > > > If a string contains UTF-8 data, that data appears to be correct while > &

Re: [Mason] Bizarre unicode behavior in mod_perl vs CGI

2014-03-21 Thread Shane McCarron
Huh - okay thanks - I will look into that! On Fri, Mar 21, 2014 at 10:36 AM, <7egg...@gmx.de> wrote: > > > On Fri, 21 Mar 2014, Shane McCarron wrote: > > > the "use utf8" pragma is to tell Perl that your *source code* is in UTF8. > > While this can be

Re: [Mason] problems setting up mason in CentOS 6

2016-01-06 Thread Shane McCarron
Map - PostgreSQL - Linux > Java - Web Applications - Search > > > > > -- > > ___ > Mason-users mailing list > Mason-users@lists.sourceforge.net &

Re: [Mason] XHTML content type

2018-04-15 Thread Shane McCarron
t the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Mason-users mailing list > Mason-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listin

Re: [Mason] XHTML content type

2018-04-16 Thread Shane McCarron
Sure. And html5 continues to pay lip service to the old media types. But there is no reason to use them that I can imagine. The user agents don't do anything with them as far as I am aware. On Mon, Apr 16, 2018 at 12:49 AM, sergio wrote: > On 15/04/18 21:29, Shane McCarron wrote: &

[Mason] Bug in Interp.pm causes test to fail on Windows

2006-02-02 Thread Shane McCarron
Okay - its really a bug in Windows, but... Interp.pm's remove object directory method incorrectly assumes that you can rename foo to bar, where foo and bar are both existing directories. On unix, this helpfully puts foo inside of bar... On windows, it fails. The following patch will address

Re: [Mason] delay use of cookie

2006-02-17 Thread Shane McCarron
Note that, if your application is to be hosted on Windows IIS (ever), redirecting and setting a cookie doesn't work. Bug in IIS. Consequently, we send a small page that uses javascript to set the cookie and then navigate (document.cookie and document.location.url) Matt Grommes wrote: The Ma

[Mason] Fwd: question about plugins

2006-03-30 Thread Shane McCarron
I sent this yesterday and it didn't go through for some reason - However, I have more data now.  We are working with the MasonX::Plugin::Compress module, and discovered that it gets a bit confused if flush_buffer was called by a component that is being processed.  Is there a convenient way for a

[Mason] Plugins and flush_buffer

2006-03-31 Thread Shane McCarron
We are working with the MasonX::Plugin::Compress module, and discovered that it gets a bit confused if flush_buffer was called by a component that is being processed.  Is there a convenient way for a plugin to tell if a request object has been "flushed" ? Note - I tried to send this from my wor

Re: [Mason] $r parameters

2006-03-31 Thread Shane McCarron
Well - I suspect there is a *right* way to do this, but we do: my $scheme = "http" ; my $basePort = 80 ; if ($ENV{'HTTPS'} eq "on") {     $scheme = "https" ;     $basePort = 443 ; } my $baseURI = "$scheme://" . $ENV{'HTTP_HOST'} ; # my $baseURI = "http://" . $ENV{'SERVER_NAME'} ; my $port = $ENV{

[Mason] flush_buffer and apache 2 / mod_perl 2

2006-05-10 Thread Shane McCarron
n my tree, doing: $m->print("Here is a test of flushing output.  will sleep for 10 seconds."); $m->flush_buffer() ; sleep 10; and I do not see that output...  Now of course there are myriad autohandlers in the way and some fliter methods, but.... shouldn't this just work?  Please tell me I am missing something stupid?-- --Shane McCarron[EMAIL PROTECTED]

[Mason] Re: flush_buffer and apache 2 / mod_perl 2

2006-05-10 Thread Shane McCarron
lt;%filter> s{input ([^>]*?type=")(submit|reset)(".*?>)}{input disabled="disabled" $1$2$3}isg ; Help? --Shane McCarron[EMAIL PROTECTED]

Re: [Mason] Re: flush_buffer and apache 2 / mod_perl 2

2006-05-11 Thread Shane McCarron
> Here's the filter block, just in case that matters:>> <%filter>> s{input ([^>]*?type=")(submit|reset)(".*?>)}{input disabled="disabled"> $1$2$3}isg ;> >> Help?> --> Shane McCarron> [EMAIL PROTECTED] [EMAIL PROTECTED]> -- --Shane McCarron[EMAIL PROTECTED]

Re: [Mason] lighttpd and FastCGI

2006-07-18 Thread Shane McCarron
___Mason-users mailing listMason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users-- --Shane McCarron [EMAIL PROTECTED] - Take Surveys. Earn Cash. Influence the Future

[Mason] Plugins in HTML::Mason 1.28?

2006-08-11 Thread Shane McCarron
atest versions, but I am unclear what the plugin architecture was in 1.28.  Before I spend ages trying to work it out was there one?--Shane McCarron[EMAIL PROTECTED] - Using Tomcat but need to do more? Need to suppor

[Mason] Handling an exception in a customer handler with a plugin

2006-08-28 Thread Shane McCarron
d handle_request call doesn't seem to correctly get its output processed and, as a result, my error reports come out with no content.--Shane McCarron[EMAIL PROTECTED] - Using Tomcat but need to do more? Need to support

Re: [Mason] Handling an exception in a customer handler with a plugin

2006-08-28 Thread Shane McCarron
Never mind The answer, of course, is that in a plugin the "context" parameter has an "error" method that you can query to see if there was an exception thrown. Thanks Dave etc!  Nice design.  Too bad I can't read manual pages :-( On 8/28/06, Shane McCarron <[EMAIL

[Mason] Weirdness with ARGS hash, POST method, mod_perl2, and CGI as the args_method

2006-10-12 Thread Shane McCarron
mode?-- Shane McCarron[EMAIL PROTECTED] - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Applic

Re: [Mason] try, finally and so on

2006-12-26 Thread Shane McCarron
arn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/list

[Mason] Using mason to serve images

2007-02-21 Thread Shane McCarron
underlying code that is referencing these images. Has anyone does this? -- Shane McCarron [EMAIL PROTECTED] - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get

Re: [Mason] Using mason to serve images

2007-02-21 Thread Shane McCarron
&p=sourceforge&CID=DEVDEV ___ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users -- Shane McCarron [EMAIL PROTECTED] - T

Re: [Mason] Using mason to serve images

2007-02-21 Thread Shane McCarron
ady loaded them up in line so it knows not to phone home. Its a gross hack, but it seems to work. Thanks for all the advice. As an aside how do you put an image into a JS variable? And how do you get the variables contents rendered as an image in the middle of HTML in, for example, an iframe?

[Mason] Can I find out if output has been flushed?

2007-02-26 Thread Shane McCarron
Is there a way I can portably tell if output has been flushed in the middle of a request? -- Shane McCarron [EMAIL PROTECTED] - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you&#

Re: [Mason] multiple mason site on multiple virtual host

2007-03-25 Thread Shane McCarron
.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users

Re: [Mason] multiple mason site on multiple virtual host

2007-03-25 Thread Shane McCarron
users mailing list > Mason-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mason-users > -- Shane McCarron ___ Mason-users mailing list [EMAIL PROTECTED]://lists.sourceforge.net/lists/listinfo/mason-users ---

[Mason] list context for interpolation?

2007-03-30 Thread Shane McCarron
that this should have been a list context! Obviously that's easy to work around, but it was a very surprising thing to me. Why are interpolations like that executed in list context? -- Shane McCarron [EMAIL PROTECTED] - Take

[Mason] solaris 10, unicode, and mason

2007-04-03 Thread Shane McCarron
, arabic gibberish. Is there some weird trick we need to perform to get Solaris + Perl to treat the contents of files UTF-8? -- Shane McCarron [EMAIL PROTECTED] - Take Surveys. Earn Cash. Influence the Future of IT Join

Re: [Mason] list context for interpolation?

2007-04-04 Thread Shane McCarron
some point that <% @foo %> should just work. A little surprising, but you only have to learn the rule once. On Apr 4, 2007, at 4:50 AM, Ruslan Zakirov wrote: > I think it's old time decision, perl's print works in the same way. > > On 3/31/07, Shane McCarron <[EMAIL PRO

Re: [Mason] Handling file uploads

2007-06-09 Thread Shane McCarron
This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___

Re: [Mason] Handling file uploads

2007-06-10 Thread Shane McCarron
ays, or will do at some point in the future. G -- Shane McCarron [EMAIL PROTECTED] - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. N

[Mason] subcomponents seem to have a different INC list sometimes?

2008-12-02 Thread Shane McCarron
//www.foxytunes.com/artist/dido/track/the+day+before+the+day> posted with FoxyTunes <http://www.foxytunes.com/signatunes/> -- Shane McCarron [EMAIL PROTECTED] - This SF.Net email is sponsored by the Moblin Your Move Dev

Re: [Mason] subcomponents seem to have a different INC list sometimes?

2008-12-02 Thread Shane McCarron
suggestions at this point! > On Dec 2, 2008, at 1:54 PM, Shane McCarron wrote: > > Okay, I know this is going to sound insane... > > We have a TON of customers using a mason-based app under mod_perl. Two out > of the hundreds are both running into a situation where when a subcompo

Re: [Mason] subcomponents seem to have a different INC list sometimes?

2008-12-02 Thread Shane McCarron
e, Dec 2, 2008 at 4:07 PM, Hans Dieter Pearcey < [EMAIL PROTECTED]> wrote: > On Tue, Dec 02, 2008 at 03:54:19PM -0600, Shane McCarron wrote: > > So is it possible that subcomponents do not inherit the INC list from > their > > parent in some situations? Or is it possibl

Re: [Mason] subcomponents seem to have a different INC list sometimes?

2008-12-02 Thread Shane McCarron
e case of these customers they are both using modern versions of Apache 2 and mod_perl 2. In either case, since SOME of our modules compile just fine, and it only falls over in a subcomponent, I remain mystified! -- Shane McCarron [

Re: [Mason] subcomponents seem to have a different INC list sometimes?

2008-12-02 Thread Shane McCarron
On Tue, Dec 2, 2008 at 4:36 PM, Perrin Harkins <[EMAIL PROTECTED]> wrote: > On Tue, Dec 2, 2008 at 5:26 PM, Shane McCarron <[EMAIL PROTECTED]> > wrote: > > While we DO support mod_perl 1, in the case of > > these customers they are both using modern versions of Apac

Re: [Mason] subcomponents seem to have a different INC list sometimes?

2008-12-02 Thread Shane McCarron
dler ATMHandler Options ExecCGI -- Shane McCarron [EMAIL PROTECTED] - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great

Re: [Mason] How to pass parameter to JavaScript file in Mason

2009-03-02 Thread Shane McCarron
__ > Mason-users mailing list > Mason-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mason-users > -- Shane McCarron halindr...@gmail.com -- Open

Re: [Mason] [Mason-devel] $r->header_out / $r->header_in / $m-> log - all not defined!

2010-05-27 Thread Shane McCarron
gt; > --- > >> --- > >> > >> ___ > >> Mason-users mailing list > >> Mason-users@lists.sourceforge.net > >> https://lists.sourceforge.