[interchange-cvs] interchange - racke modified 2 files
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Mon Nov 3 09:10:34 EST 2003
User: racke
Date: 2003-11-03 14:10:34 GMT
Modified: . WHATSNEW
Modified: dist/lib/UI/pages/admin content_editor.html
Log:
Force user to enter name of new page/template/component name to avoid server
crashes.
Revision Changes Path
2.160 +6 -0 interchange/WHATSNEW
rev 2.160, prev_rev 2.159
Index: WHATSNEW
===================================================================
RCS file: /anon_cvs/repository/interchange/WHATSNEW,v
retrieving revision 2.159
retrieving revision 2.160
diff -u -r2.159 -r2.160
--- WHATSNEW 31 Oct 2003 10:45:00 -0000 2.159
+++ WHATSNEW 3 Nov 2003 14:10:34 -0000 2.160
@@ -20,6 +20,12 @@
The "province" profile check will now accept both NF and NL, but NF is now
deprecated and will be removed in a future release.
+UI
+--
+
+* Force user to enter name of new page/template/component name to avoid server
+ crashes.
+
Usertags
--------
1.6 +8 -0 interchange/dist/lib/UI/pages/admin/content_editor.html
rev 1.6, prev_rev 1.5
Index: content_editor.html
===================================================================
RCS file: /anon_cvs/repository/interchange/dist/lib/UI/pages/admin/content_editor.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- content_editor.html 31 Oct 2003 16:49:57 -0000 1.5
+++ content_editor.html 3 Nov 2003 14:10:34 -0000 1.6
@@ -29,6 +29,13 @@
They can be relocated to a catalog-specific place
by copying to CATROOT/include.
[/comment]
+[calcn]
+unless ($CGI->{new} || $CGI->{ui_name} =~ /\S/) {
+ $CGI->{new} = 1;
+ $Tag->error({name => 'ui_name', set => 'Please supply name'});
+}
+return;
+[/calcn]
[if cgi new]
<form action="[area __UI_BASE__/content_editor]">
<table width="60%">
@@ -39,6 +46,7 @@
<td>
[set page_name_click]
[calc]
+ return unless $CGI->{ui_name} =~ /\S/;
$CGI->{ui_name} =~ s/^\s+//;
$CGI->{ui_name} =~ s/\s+$//;
if($CGI->{ui_type} eq 'page') {
More information about the interchange-cvs
mailing list