Browse code

Sonst validiert das HTML nicht

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@603 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on08/08/2007 18:29:29
Showing1 changed files
... ...
@@ -104,7 +104,7 @@ function generate_form_token($form_id)
104 104
   if (! isset($_SESSION['session_token']))
105 105
     $_SESSION['session_token'] = random_string(10);
106 106
   $formtoken = hash('sha256', $sessid.$form_id.$_SESSION['session_token']);
107
-  return '<input type="hidden" name="formtoken" value="'.$formtoken.'" />'."\n";
107
+  return '<p style="display: none;"><input type="hidden" name="formtoken" value="'.$formtoken.'" /></p>'."\n";
108 108
 }
109 109
 
110 110