FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Error after upgrade to 3 when click on template editor
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Error after upgrade to 3 when click on template editor [message #160454 is a reply to message #160444] Mon, 14 September 2009 19:08 Go to previous messageGo to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma:
Senior Member
Administrator
Core Developer
Here is the fix:

$ cvs diff -ua admtemplates.php
Index: admtemplates.php                
===================================================================
RCS file: /forum21/install/www_root/adm/admtemplates.php,v
retrieving revision 1.1
diff -u -a -r1.1 admtemplates.php
--- admtemplates.php    7 Sep 2009 15:49:52 -0000       1.1
+++ admtemplates.php    14 Sep 2009 19:03:53 -0000
@@ -14,13 +14,13 @@
        fud_use('compiler.inc', true);
        fud_use('theme.inc', true);

-       require($WWW_ROOT_DISK . 'adm/admpanel.php');
-
        if (isset($_POST['tname'], $_POST['tlang'], $_POST['btn_edit'])) {
                header('Location: tmpllist.php?tname='.$_POST['tname'].'&tlang='.$_POST['tlang'].'&'.__adm_rsidl);
                exit;
        }

+       require($WWW_ROOT_DISK . 'adm/admpanel.php');
+
        /* Limit theme names to sane characters */
        if (isset($_POST['newname'], $_POST['btn_create'])) {
                $_POST['newname'] = preg_replace('![^A-Za-z0-9_]!', '_', trim($_POST['newname']));


PS: I've applied it to CVS, but CVSTrac somehow doesn't show it.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Upgraded to 2.8.1, Now Post Notification Emails are munged
Next Topic: Unable to Import Forum
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 10:49:38 GMT 2024

Total time taken to generate the page: 0.07458 seconds