Embedded Markup - HTML mode wipes out 'name=' in forms coding
|
elizawire
Joined: 2007-06-11
Posts: 2 |
Posted: Mon, 2007-06-11 05:54
|
|
I'm trying to put in a form and changed to the "Raw HTML" mode but whenever I past in the form code and save it in the photo description, the codes saves intact except that it seems to strip out: name="Whatever Label Name" It's strange because it only strips out the name="?" part of each line and leaves everything else alone? I've tested the code in an HTML page that is intact, and it works fine, so I know this is the only problem. Here's the info on my current setup. If anyone can spot what probably is an obvious error I'm overlooking, please let me know as I'd be very appreciative. Last Run Details: Gallery version = 2.2.1 core 1.2.0.1 |
|
| Login or register to post comments |

Posts: 32506
you can't use any HTML. for security purposes, G2 filters the HTML.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 2
Thanks for the reply, but why would they give you a "RAW HTML" option? I'm able to make a hyperlink, but this form code just gets the NAME="xxx" stripped out. It does warn about it being unstable, so I guess this is what's meant by that. Maybe I'll have to look for another similar solution that will work. Thanks for your reply, though.
Posts: 32506
> but why would they give you a "RAW HTML" option?
you can use formatting tags, link tags etc. you can't use script, embed, object, form, .. tags.
as i said, for security puroposes.
> It does warn about it being unstable, so I guess this is what's meant by that.
where does it warn about what?
no, this is not an unstable behavior, this is all intended. a small fraction of our users may actually want to use active HTML elements there. the rest is happy that they're protected from XSS and the like.
you can edit the php code to allow for any HTML (just remove the safeHtml filter).
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage