[pLog-svn] r5169 - plog/branches/lifetype-1.2/templates/admin
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Fri Mar 23 18:47:27 EDT 2007
Author: oscar
Date: 2007-03-23 18:47:27 -0400 (Fri, 23 Mar 2007)
New Revision: 5169
Modified:
plog/branches/lifetype-1.2/templates/admin/newpost.template
Log:
possible fix for mantis issue 1230 (http://bugs.lifetype.net/view.php?id=1230), where the content of the text area would appear escaped with backslashes when magic_quotes_gpc was set to on. The problem was that $smarty.request.postText did not contain the unescaped version of the content, and therefore backslashes were not being removed.
If somebody knows why, when or who this Smarty code was added, please let me know but for the time being, it seems to fix this problem.
Modified: plog/branches/lifetype-1.2/templates/admin/newpost.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/newpost.template 2007-03-23 12:28:55 UTC (rev 5168)
+++ plog/branches/lifetype-1.2/templates/admin/newpost.template 2007-03-23 22:47:27 UTC (rev 5169)
@@ -1,8 +1,5 @@
{include file="$admintemplatepath/header.template"}
{include file="$admintemplatepath/navigation.template" showOpt=newPost title=$locale->tr("newPost")}
-{if $smarty.request.postText}
- {assign var=postText value=$smarty.request.postText}
-{/if}
{assign var=htmlarea value=$blogsettings->getValue("htmlarea_enabled")}
<script type="text/javascript" src="js/ui/plogui.js"></script>
<script type="text/javascript" src="js/calendar/datetimepicker.js"></script>
More information about the pLog-svn
mailing list