|
-
Jan 26th, 2002, 02:59 PM
#1
Thread Starter
Fanatic Member
Send character 39
hey!
i think ive hit a 50ft high electrified razor wire fence here, but it might be possible...
there is a write function... write('bla bla bla').. and i want to send a:
'): <script></script> write('
so that it will stop writin it, and run whatevers in the script part... It is sent using an url, to a cgi function, and when i try sending it, it changes %27 into ' in the source so it ends up like this:
write('bla bla bla'): <script></script> write('' bla bla
how can i send a ' which will appear in the source??
thanx
-
Jan 28th, 2002, 01:23 PM
#2
Frenzied Member
Not that I understand your question, but try escaping whatever character you want to be ignored. The JavaScript escape character is the backslash.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Jan 29th, 2002, 07:21 PM
#3
Thread Starter
Fanatic Member
lol, i only just noticed! it changed the &#39 into an ' on my question, it should have been...
--------------------------------------------------------------------
there is a write function... write('bla bla bla').. and i want to send a:
'): <script></script> write('
so that it will stop writin it, and run whatevers in the script part... It is sent using an url, to a cgi function, and when i try sending it, it changes %27 into &#39 in the source so it ends up like this:
write('bla bla bla&#39 ): <script></script> write('' bla bla
how can i send a ' which will appear in the source??
--------------------------------------------------------------------
so all i want to do is send a ' character (%27) without it being changed into the &#39 in the script... does that make sense??
-
Feb 4th, 2002, 01:51 PM
#4
Frenzied Member
No, you still make no sense. Smelt the problem down to its absolute simpliest form. And clearly ask what you want. Your post mentions that you are trying to send a line, but your gross lack of punctuation turns your entire post into a series of non sequiturs.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|