svn commit: r687761 - /lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/content/admin/groups/group-admin.js

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: jann
Date: Thu Aug 21 06:45:24 2008
New Revision: 687761

URL: http://svn.apache.org/viewvc?rev=687761&view=rev
Log:
only trim 'rule string' if it is set, otherwise we got an exception

Modified:
    lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/content/admin/groups/group-admin.js

Modified: lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/content/admin/groups/group-admin.js
URL: http://svn.apache.org/viewvc/lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/content/admin/groups/group-admin.js?rev=687761&r1=687760&r2=687761&view=diff
==============================================================================
--- lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/content/admin/groups/group-admin.js (original)
+++ lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/content/admin/groups/group-admin.js Thu Aug 21 06:45:24 2008
@@ -232,7 +232,8 @@
                   messages.add(new Packages.org.apache.lenya.ac.Message("This is not a valid group ID."));
             }
             else {
-                   rule = cocoon.request.getParameter("rule").trim();
+                   rule = cocoon.request.getParameter("rule");
+                   if (rule != null) rule.trim();
                    if (rule == "") {
                       rule = null;
                    }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.