diff options
| author | 2023-01-26 08:59:34 +0100 | |
|---|---|---|
| committer | 2023-01-26 08:59:34 +0100 | |
| commit | 07efaf71eac19934d858df678576823da131d1bb (patch) | |
| tree | 38cde28b75769272378b0aa3e41047b30901800e /lib/lib_rss.php | |
| parent | 2f027545226eca238a6a80021cb3ac0e60b51696 (diff) | |
Fix error handling when updating URL (#5039)
Fix 3 related error handling when updating the feed URL with an invalid URL. Previously leading to unclear 500 page with additional PHP errors.
Diffstat (limited to 'lib/lib_rss.php')
| -rw-r--r-- | lib/lib_rss.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php index e5362bc5c..d1821b639 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -845,7 +845,7 @@ function errorMessageInfo($errorTitle, $error = '') { $details = ''; // Prevent empty tags by checking if error isn not empty first if ($error) { - $error = htmlspecialchars($error, ENT_NOQUOTES, 'UTF-8'); + $error = htmlspecialchars($error, ENT_NOQUOTES, 'UTF-8') . "\n"; // First line is the main message, other lines are the details list($message, $details) = explode("\n", $error, 2); |
