X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=errors.php;h=d9185307a7bb8430b352b81bb35617141402c4b4;hb=e2b8c9273e09091c235959c25d8e4d8122aa6ca8;hp=556af08829b1e74bd3c0dd06c84ae9a7b2c36813;hpb=af106b0ebe0b34189a83bbfb64e9c9ace044a273;p=tt-rss.git diff --git a/errors.php b/errors.php index 556af088..d9185307 100644 --- a/errors.php +++ b/errors.php @@ -1,25 +1,54 @@ - $error) { + + $error = preg_replace("/\n/", "", $error); + $error = preg_replace("/\"/", "\\\"", $error); + + print "ERRORS[$id] = \"$error\";\n"; + } + } ?>