lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r687761 - /lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/content/admin/groups/group-admin.js
Date Thu, 21 Aug 2008 13:45:25 GMT
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


Mime
View raw message