Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Error in modify-template (german version) ?

Quote Reply
Error in modify-template (german version) ?
I found this two lines in the template:

<input type="hidden" name="modify" value="1">
<input type="SUBMIT" name="modify" value="Link &auml;ndern">

Havenīt watched the code of modify.pm now, but if itīs needed
to set modify = 1, then itīs wrong to give the submit button the name modify, too.

With this the form will pass ... ?modify=Link &auml;ndern
and not ?modify=1

Will watch the code now ...
Robert
Quote Reply
Re: [Robert] Error in modify-template (german version) ? In reply to
I don't think it will hurt, because the code probably just does:

if ($IN->param('modify')) {

So even if some text gets passed in, it will still work.

BTW - is this in Links SQL, or GForum?

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Robert] Error in modify-template (german version) ? In reply to
Yes, saw it.
Robert