In almost every Backdrop project at AltaGrade, we find it necessary to trim all textfields using a custom hook. This is because users often leave empty spaces at the beginning or end of their entries. While it may not be a significant issue for textfields like names, as it might only disrupt alphabetical ordering, it becomes more critical for fields that can accept mixed values such as text, integers, and floats. This can affect calculations and lead to more serious consequences. Therefore, I briefly considered the idea of having every textfield entry trimmed by the core. This could be a beneficial solution without causing any known issues. However, I acknowledge that this is just my opinion, and I welcome everyone to share their insights on this matter.
GitHub Issue #:
6386
Recent comments
What about www and non-www bare domain names? Should both be added as trusted host patterns? $settings['trusted_host_patterns'] = array('^www\.example\.com$','^example\.com...
Trusted host patterns if several related domains redirect to main domain
@ericfoy Thanks for posting the link to Build It with Backdrop and deployment with config files. It's a great description.
Migrating to a different domain
Presumably, including Apache .htaccess as server level?
Trusted host patterns if several related domains redirect to main domain