You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ja...@apache.org on 2008/08/21 15:45:25 UTC

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

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;
                    }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org