1. Søren Løvborg
  2. UrlLinker

Issues

Issue #1 invalid

Empty regular expression

Anonymous created an issue

Hello Soren!

I was trying to implement this into my website. When running your script as a standalone - it worked fine, but as soon as I tried to put it into my website i'm getting this error, and I can't figure out what is wrong.

Warning: preg_match() [function.preg-match]: Empty regular expression in D:\Server\xampp\htdocs\zendtest\public\UrlLinker.php on line 51

Thanks!

Comments (3)

  1. Michael Gotiashvili

    I beg you a pardon for creating this issue, the problem was that variable $rexUrlLinker wasn't received through global I suppose, and that's why the function htmlEscapeAndLinkUrls($text) had this error. I simply moved those variables into the function and it worked correctly. Don't know why it had the problem, but it's solved and works great!

  2. Log in to comment