P. 1
Interpolique

Interpolique

|Views: 2,641|Likes:
Published by dan@doxpara.com

More info:

Published by: dan@doxpara.com on Jun 14, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PPTX, PDF, TXT or read online from Scribd
See more
See less

10/27/2011

pdf

text

original

No Evalin Java or C#

One approach: Combine variable argument

functions with string subclass tagging

ypublic bwrapw = new bwrap();

w.s(w.c("select * from foowhere x="), argument1,
w.c("and y="), argument2);

y If you forget to mark the safe code, it breaks

Another approach:

yw.code(´select * from foowhere

x=´).data(argument1).code(´and
y=´).data(argument2)

Similar to LINQ etc. but actually works for arbitary

grammars

If you mismark code as data, or vice versa, it breaks

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->