diff --git a/README.md b/README.md index f603daf..a0a028d 100644 --- a/README.md +++ b/README.md @@ -14,13 +14,13 @@ A **self-hosted** disposable mailbox service (aka trash mail) :cloud: :envelop * Automatic refresh. Download and delete your emails. * Display emails as text or html with sanitization filter. * Display emails based on one [catch-all imap mailbox](https://www.google.ch/search?q=how+to+setup+catch-all+imap+mailbox). -* Only requires PHP >=5.3.0 and [imap extension](http://php.net/manual/book.imap.php) +* Only requires PHP >=7.2 and [imap extension](http://php.net/manual/book.imap.php) ## Usage ### Requirements -* webserver with php >=5.3.0 +* webserver with php >=7.2 * php [imap extension](http://php.net/manual/book.imap.php) * IMAP account and a domain with [catch-all configuration](https://www.google.ch/search?q=how+to+setup+catch-all+imap+mailbox). (all emails go to one mailbox). diff --git a/src/autolink.php b/src/autolink.php new file mode 100644 index 0000000..d9ea250 --- /dev/null +++ b/src/autolink.php @@ -0,0 +1,49 @@ +' . $url . ''; + }, $string); + + return $string; + } + +} diff --git a/src/frontend.template.php b/src/frontend.template.php index 16c40e9..4a1e56a 100644 --- a/src/frontend.template.php +++ b/src/frontend.template.php @@ -88,7 +88,7 @@ $purifier = new HTMLPurifier($purifier_config); mailbox: -