cockpit-project/cockpit — pull request #1125 by stefwalter (2014-09-04 10:49:14+00:00)
Title: static: Don't use unportable trim() function on login page

Also refactor a bit to avoid code duplication.