Welcome Guest, Not a member yet? Register   Sign In
Putting a Printer Icon on a Web Page?
#7

[eluser]drewbee[/eluser]
[quote author="TheFuzzy0ne" date="1238452654"]Just for the record, you can replace, say the "j" in javascript: with j

Code:
javascript:document.print();

EDIT: Or not... Doesn't seem to work in code tags...

javascript:document.print();[/quote]

This is what I hate about CI's filtering. I disabled it.

If you look in the code it preserves and relabels any ambersand, then reconverts it back afterwords.

In a webpage if I typed < i would expect to see < on the display.
If i typed &__lt; I would expect &__lt; to appear, not < (obviously i inserted a hypen to keep it from being converted.... argh CI... this is one of my biggest querks that I really do not see the point behind. I have disabled most of CI's uneeded 'filtering' as it doesn't act in a standard behavior.

I ran my new code against all scripts at http://ha.ckers.org/xssAttacks.xml all attempt types in a form, outside of a form, and after form submission and all was well.

So once again... why?


Messages In This Thread
Putting a Printer Icon on a Web Page? - by El Forum - 03-30-2009, 11:20 AM
Putting a Printer Icon on a Web Page? - by El Forum - 03-30-2009, 11:24 AM
Putting a Printer Icon on a Web Page? - by El Forum - 03-30-2009, 11:26 AM
Putting a Printer Icon on a Web Page? - by El Forum - 03-30-2009, 11:35 AM
Putting a Printer Icon on a Web Page? - by El Forum - 03-30-2009, 11:37 AM
Putting a Printer Icon on a Web Page? - by El Forum - 03-30-2009, 11:53 AM
Putting a Printer Icon on a Web Page? - by El Forum - 03-30-2009, 02:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB