Left block content in admin panel

Use GitHub to post bug reports and error descriptions for phpwcms. Describe your problem detailed!
Locked
marco

Left block content in admin panel

Post by marco »

I created a 3 column template and I entered in the template blocks

Left block:

 Left

Main block:

 Main

Right block:

 Right

After I save the template, the data is saved as entered (I check it with view source) but the Left block displays only " Left" - the &nbsp seems to be interpreted and shown as an actual space instead of the &nbsp code.

The other blocks display exactly what I entered.
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

You are in the right:

In File "admin.templates.tmpl.php" line 197 change from:

Code: Select all

		<td><textarea name="template_block_left" cols="35" rows="4" class="code" id="template_block_left" style="width:460px"><?php echo $template["lefttext"]; ?></textarea></td>
to

Code: Select all

		<td><textarea name="template_block_left" cols="35" rows="4" class="code" id="template_block_left" style="width:460px"><?php echo html_specialchars($template["lefttext"]); ?></textarea></td>
Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Locked