Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~6K People Reached
Favorite Tags
Member Avatar for woodenduck

How can I prevent a XSS attack but allow user to post iframe and img? My page is php based but I allow users to submit text and have allowed only iframes and imgs with strip_tag How do I prevent a user from launching an xss attack?

Member Avatar for woodenduck
0
326
Member Avatar for woodenduck

How do I use htmlspecialchars to escape all html but then allow two tags? I've escaped my text but want to allow the following two tags: img iframe Is there an easy way to do this? I never had a class on php so everything I know is self taught. …

Member Avatar for diafol
0
161
Member Avatar for woodenduck

Hey All, I think I messed up.. I went to PhpMyAdmin and clicked export and exported all my databases with the default options to a sql file. And I downloaded a bzip file with my sql file in it. If I open the sql file it looks like BZh41AY&SYò)É<91>^@B"_<80>P^Pz÷ÿúÿÿÿðÿÿßð`4^^òPÇ»w^Fç-îä»o11ãwÞ|ú^AÜ^Aëo¨ú½Ðî^Nï:.Ó§;Såñݱèó¦ô<9b>ÓÎÞe·<92>ó»7×Ú;<98>£§Nɤ)lÓFP<94>^Tå<8b>Û^T'<86>ǭܦî°:n±@÷Þ=öõôût[Àûî÷¼>D<94>}5D7¸ÏyÕ^]zâªR<90><<9c>$P@Ð^H^B50§<94>{Th&Ò<£F<9a>^L^SLF^F<99>^@¢<9a>(hh^Y^@^F<9a>^@^@Ð^@^@^BA$^R<9e><89>詵=ªm4<99>4^Y^@^OPô<9a>h^Z^@^@^Rz©(ÔÊz£ÔñA£&<8d>© ^M^@È^M^@^@^@^H<92>^P #!4ÒzL<9a><9b>Q<99>SÄ<8d>1<88><9b>@<9e><8d>C@ …

Member Avatar for woodenduck
0
240
Member Avatar for woodenduck

Hey all, I'm new to MySQL and never took a class in it. I have two questions. 1)) Can anyone suggest a good book to learn MySQL quickly. 2)) Can someone tell me how to set up a database that contains user accounts that can then be linked to other …

Member Avatar for smantscheff
0
384
Member Avatar for twazzer

[CODE]public class MinDif { public static void main(String[] args) { EasyReader keyboard = new EasyReader(); EasyWriter screen = new EasyWriter(); //Create an array to the length of the specified entry int numItems=keyboard.readInt("Enter the length of the array: "); String[] myArray = new String[numItems]; // Read in the contents of the …

Member Avatar for woodenduck
0
3K
Member Avatar for woodenduck

Hey all, I want to write an application that I can run from the console where it loads settings from a config file. I also want to be able to double click on the executable and obtain a GUI where I can specify settings that will be stored in the …

Member Avatar for NormR1
0
186
Member Avatar for woodenduck

Started this thread in the python area but seeing as Jython is a fusion of java and python I thought I'd post a link here in case someone can help [URL="http://www.daniweb.com/forums/showthread.php?t=415593"]http://www.daniweb.com/forums/showthread.php?t=415593[/URL]

0
82
Member Avatar for woodenduck

Hey all I need some help with Jython. In Python I'm given the easy option to read a file with [CODE]file = open('/dev/input/js0')[/CODE] Then I can put it into a non blocking mode with something similar to [CODE] import os, fcntl file = os.open('/dev/input/js0', os.O_NONBLOCK) [/CODE] But in Jython I'm …

0
217
Member Avatar for woodenduck

I would like to create a notebook type application that will accept touch input and allow you to draw on the surface view. I'm unsure what I'm doing wrong since I have not programmed for the Android before. Here is what I have: [CODE]findViewById(R.id.pageSurface).setOnTouchListener(new View.OnTouchListener() { public boolean onTouch(View v, …

Member Avatar for woodenduck
0
374
Member Avatar for aungmyohein

"aung myo hein" to "nieh oym gnua" how to convert with CharAt GUI JTextField or JOptionPane

Member Avatar for woodenduck
0
185
Member Avatar for selma_ter

I use this part to make transparent the JFrame: [CODE] GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice gd = ge.getDefaultScreenDevice(); boolean opacity_supported = gd.isWindowTranslucencySupported(java.awt.GraphicsDevice.WindowTranslucency.TRANSLUCENT); if( !opacity_supported ) { System.out.println("Your platform does not support opacity."); } else { setOpacity((float) 0.85); }[/CODE] It works perfect on Windows. On the same machine I use also …

Member Avatar for woodenduck
0
174
Member Avatar for woodenduck

Hey, I was wondering if anyone could show me a little javascript. I've never used it before and am unfamiliar with how to reference outside API's. What I'm trying to do is read a string in from a website/Web API. So..: HTML with javascript document: [code] <script type="text/javascript"> var wantedString …

Member Avatar for woodenduck
0
595
Member Avatar for woodenduck

I would like to have a loop that creates a JFrame, sets it visible and waits until that JFrame is disposed of before creating another. Is this possible? A solution would be greatly appreciated I can't seem to figure this one out. ex: [CODE]for(int i=0; i<5; i++){ JFrame foo = …

Member Avatar for woodenduck
0
133