This is an automated email from the ASF dual-hosted git repository.

asf-gitbox-commits pushed a commit to branch db/8607d
in repository https://gitbox.apache.org/repos/asf/allura.git

commit 6fd7bb0fa1b4ff494125ae049fbe3536e5c6b11d
Author: Dave Brondsema <[email protected]>
AuthorDate: Mon Jun 15 16:20:21 2026 -0400

    [#8607] limit prefs able to set via form
---
 Allura/allura/controllers/auth.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Allura/allura/controllers/auth.py 
b/Allura/allura/controllers/auth.py
index be741aaa1..e62012338 100644
--- a/Allura/allura/controllers/auth.py
+++ b/Allura/allura/controllers/auth.py
@@ -823,10 +823,11 @@ def update(self, preferences=None, **kw):
             c.user.set_pref('display_name', preferences['display_name'])
             if old != preferences['display_name']:
                 h.auditlog_user('Display Name changed %s => %s', old, 
preferences['display_name'])
+
             for k, v in preferences.items():
                 if k == 'results_per_page':
                     v = int(v)
-                c.user.set_pref(k, v)
+                    c.user.set_pref(k, v)
         redirect('.')
 
     @expose()

Reply via email to