Page 1 of 1

Left block content in admin panel

Posted: Fri 21. Nov 2003, 23:26
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.

Posted: Sat 22. Nov 2003, 00:15
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