- urlencode() the subjects in the admin overview page.

4.7.x
Dries Buytaert 2005-06-04 09:52:17 +00:00
parent 263b7e230d
commit 8d4236c9e4
2 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ function contact_admin() {
$result = db_query('SELECT subject, recipients FROM {contact} ORDER BY subject');
$rows = array();
while ($subject = db_fetch_object($result)) {
$rows[] = array($subject->subject, $subject->recipients, l(t('edit'), 'admin/contact/edit/'. $subject->subject), l(t('delete'), 'admin/contact/delete/'. $subject->subject));
$rows[] = array($subject->subject, $subject->recipients, l(t('edit'), 'admin/contact/edit/'. urlencode($subject->subject)), l(t('delete'), 'admin/contact/delete/'. urlencode($subject->subject)));
}
$header = array(t('Subject'), t('Recipients'), array('data' => t('Operations'), 'colspan' => 2));
return theme('table', $header, $rows);

View File

@ -209,7 +209,7 @@ function contact_admin() {
$result = db_query('SELECT subject, recipients FROM {contact} ORDER BY subject');
$rows = array();
while ($subject = db_fetch_object($result)) {
$rows[] = array($subject->subject, $subject->recipients, l(t('edit'), 'admin/contact/edit/'. $subject->subject), l(t('delete'), 'admin/contact/delete/'. $subject->subject));
$rows[] = array($subject->subject, $subject->recipients, l(t('edit'), 'admin/contact/edit/'. urlencode($subject->subject)), l(t('delete'), 'admin/contact/delete/'. urlencode($subject->subject)));
}
$header = array(t('Subject'), t('Recipients'), array('data' => t('Operations'), 'colspan' => 2));
return theme('table', $header, $rows);