Skip to content
Snippets Groups Projects
Commit 8daefd00 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Sanitize the exception

parent 42b924da
No related branches found
No related tags found
No related merge requests found
...@@ -98,7 +98,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo ...@@ -98,7 +98,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
OCP\Util::sendMail($to_address, $to_address, $subject, $text, $from_address, $user); OCP\Util::sendMail($to_address, $to_address, $subject, $text, $from_address, $user);
OCP\JSON::success(); OCP\JSON::success();
} catch (Exception $exception) { } catch (Exception $exception) {
OCP\JSON::error(array('data' => array('message' => $exception->getMessage()))); OCP\JSON::error(array('data' => array('message' => OC_Util::sanitizeHTML($exception->getMessage()))));
} }
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment