diff options
author | Dries Buytaert <dries@buytaert.net> | 2002-11-11 07:18:21 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2002-11-11 07:18:21 +0000 |
commit | b372053cf8be2d8e535a0886bb324766f823813e (patch) | |
tree | a2da221b205fdf24d8468a8001a33cc2aae1d537 | |
parent | 99fd26db0845bf7fd43ca6b519fae6a312469de3 (diff) | |
download | brdo-b372053cf8be2d8e535a0886bb324766f823813e.tar.gz brdo-b372053cf8be2d8e535a0886bb324766f823813e.tar.bz2 |
- Strip all tags from the watchdog message.
-rw-r--r-- | modules/watchdog.module | 2 | ||||
-rw-r--r-- | modules/watchdog/watchdog.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/watchdog.module b/modules/watchdog.module index ff2473dda..6eb79b228 100644 --- a/modules/watchdog.module +++ b/modules/watchdog.module @@ -45,7 +45,7 @@ function watchdog_overview($type) { $output .= " <tr><th>" . t("date") . "</th><th>" . t("message") . "</th><th>" . t("user") . "</th><th>" . t("operations") . "</th></tr>"; while ($watchdog = db_fetch_object($result)) { if ($background = $color[$watchdog->type]) { - $output .= " <tr bgcolor=\"$background\"><td>". format_date($watchdog->timestamp, "small") ."</td><td>". substr(check_output($watchdog->message), 0, 64) ."</td><td align=\"center\">". format_name($watchdog) ."</a></td><td align=\"center\">". la(t("details"), array("mod" => "watchdog", "op" => "view", "id" => $watchdog->wid)) ."</td></tr>"; + $output .= " <tr bgcolor=\"$background\"><td>". format_date($watchdog->timestamp, "small") ."</td><td>". substr(strip_tags($watchdog->message), 0, 64) ."</td><td align=\"center\">". format_name($watchdog) ."</a></td><td align=\"center\">". la(t("details"), array("mod" => "watchdog", "op" => "view", "id" => $watchdog->wid)) ."</td></tr>"; } } $output .= "</table>"; diff --git a/modules/watchdog/watchdog.module b/modules/watchdog/watchdog.module index ff2473dda..6eb79b228 100644 --- a/modules/watchdog/watchdog.module +++ b/modules/watchdog/watchdog.module @@ -45,7 +45,7 @@ function watchdog_overview($type) { $output .= " <tr><th>" . t("date") . "</th><th>" . t("message") . "</th><th>" . t("user") . "</th><th>" . t("operations") . "</th></tr>"; while ($watchdog = db_fetch_object($result)) { if ($background = $color[$watchdog->type]) { - $output .= " <tr bgcolor=\"$background\"><td>". format_date($watchdog->timestamp, "small") ."</td><td>". substr(check_output($watchdog->message), 0, 64) ."</td><td align=\"center\">". format_name($watchdog) ."</a></td><td align=\"center\">". la(t("details"), array("mod" => "watchdog", "op" => "view", "id" => $watchdog->wid)) ."</td></tr>"; + $output .= " <tr bgcolor=\"$background\"><td>". format_date($watchdog->timestamp, "small") ."</td><td>". substr(strip_tags($watchdog->message), 0, 64) ."</td><td align=\"center\">". format_name($watchdog) ."</a></td><td align=\"center\">". la(t("details"), array("mod" => "watchdog", "op" => "view", "id" => $watchdog->wid)) ."</td></tr>"; } } $output .= "</table>"; |