Commit a55c0d67 authored by Dries's avatar Dries

- Patch #145135 by bjaspan and stefan: xhtml compliance.

parent 3b32bb6f
......@@ -76,7 +76,7 @@ function drupal_get_form($form_id) {
if (!isset($form)) {
$form_state['post'] = $_POST;
$form = call_user_func_array('drupal_retrieve_form', $args);
$form_build_id = md5(mt_rand());
$form_build_id = 'form-'. md5(mt_rand());
$form['#build_id'] = $form_build_id;
drupal_prepare_form($form_id, $form, $form_state);
if (!empty($form['#cache'])) {
......@@ -113,7 +113,7 @@ function drupal_get_form($form_id) {
$form = call_user_func_array('drupal_retrieve_form', $args);
// We need a new build_id for the new version of the form.
$form_build_id = md5(mt_rand());
$form_build_id = 'form-'. md5(mt_rand());
$form['#build_id'] = $form_build_id;
drupal_prepare_form($form_id, $form, $form_state);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment