Skip to content

Commit

Permalink
Debu website module
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 5, 2017
1 parent c78c067 commit e4ba6cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions htdocs/core/lib/website.lib.php
Expand Up @@ -34,6 +34,8 @@
function dolWebsiteReplacementOfLinks($website, $content)
{
// Replace php code. Note $content may come from database and does not contains body tags.

$content = preg_replace('/value="<\?php((?!\?>).)*\?>\n*/ims', 'value="...php..."', $content);
$content = preg_replace('/<\?php((?!\?>).)*\?>\n*/ims', '<span style="background: #ddd; border: 1px solid #ccc; border-radius: 4px;">...php...</span>', $content);

// Replace relative link / with dolibarr URL
Expand Down

0 comments on commit e4ba6cf

Please sign in to comment.