Error with white spaces using the [PHP] replacement tag

Use GitHub to post bug reports and error descriptions for phpwcms. Describe your problem detailed!
Locked
DerBruder2
Posts: 1
Joined: Sun 16. Apr 2006, 13:14

Error with white spaces using the [PHP] replacement tag

Post by DerBruder2 »

Hi,

there is a problem with the [PHP] replacement tag. When you add new content of the content-type "code" to an article and when you use the replacement tag [PHP] in this code section, space characters are replaced by the HTML-Code " ". As the php eval-function can not handle html-code an error occurs (/phpwcms/include/inc_front/front.func.inc.php, line 2459).

You can temporary fix this problem by adding the line

Code: Select all

$s = str_replace(' ', " ", $s);
in front of the eval-function, but maybe there are other side effects I do not know.

regards,
Malko
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

The contentPart CODE is created NOT for give in code... (that's my opinion) it's only, to have a different looking format than in the other text-formats :idea: :idea: :idea:

If you wanna put in real CODE-lines.... take the HTML-contentPart :!:
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Locked