3
1
Back

Position to point at the first if(preg_match("@.*()@", $article['content'], $matches)){ $img = $matches[1]; $img = $matches[1]; } } return $article; } /* dirty absolute URL */ $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n.

New Pull Request