I use HTML Purifier for user input sanitizing. I want to allow users to use code from [login to view URL] in their profiles on my website. In order to do that I have to make what they entered safe.
Previously I was able to use the [login to view URL] file (attached) with HTML Purifier. Now it seems it doesn't work because [login to view URL] changed their code and the filter doesn't work the same any longer.
Here is the code that the user will copy/paste into their profile on my website:
<img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://c.gigcount.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEzMDYwMjM1Mzk4NDMmcHQ9MTMwNjAyMzU*NDU*NiZwPTY5NDMwMSZkPSZnPTEmbz*3NWQ4YWMyM2JhOTk*Y2E2OTU1/NWZjNjEyMmQ1ZjkzNSZvZj*[login to view URL]" /><div style="text-align: center; margin-left: auto; visibility:visible; margin-right: auto; width:450px;"> <object width="450" height="470"> <param name="movie" value="[login to view URL]"></param> <param name="allowscriptaccess" value="never"></param> <param name="wmode" value="transparent"></param> <param name="flashvars" value="config=http%3A%2F%[login to view URL]%2Fext%2Fpc%2Fconfig_green_shuffle.xml&mywidth=450&myheight=470&playlist_url=http%3A%2F%[login to view URL]%[login to view URL]%3Fplaylist%3D27578280%26t%3D1306023535&wid=os"></param> <embed style="width:450px; visibility:visible; height:470px;" allowScriptAccess="never" src="[login to view URL]" flashvars="config=http%3A%2F%[login to view URL]%2Fext%2Fpc%2Fconfig_green_shuffle.xml&mywidth=450&myheight=470&playlist_url=http%3A%2F%[login to view URL]%[login to view URL]%3Fplaylist%3D27578280%26t%3D1306023535&wid=os" width="450" height="470" name="mp3player" wmode="transparent" type="application/x-shockwave-flash" border="0"/> </object> <br/> <a href="[login to view URL]"><img src="[login to view URL]" border="0" alt="Get a playlist!"/></a> <a href="[login to view URL]" target="_blank"><img src="[login to view URL]" border="0" alt="Standalone player"/></a> <a href="[login to view URL]"><img src="[login to view URL]" border="0" alt="Get Ringtones"/></a> </div>
Now I am attaching the file that contains some regex conditions. Are you able to make the modifications necessary so that we can get this working again? As I said it once worked, but [login to view URL] changed the code that you copy/paste, so now it doesn't work anymore. It just needs some modifications.
Thanks in advance
vbweber, i've looked the code in your comment(looks like code to attach an swf file onto an XHTML page) and the code that filters it out in the attached file [login to view URL] and i could have this done by the end of the day!