3
1
Back

Be thinner than this foreach ($imgs as $img) { $article['content'] .= "

" . $entry->textContent . "

"; } } /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) { } .

New Pull Request