Fix rules in com_contact
[CS] Code Style fixes for file
[CS] Code Style fixes for file
[CS] Code Style fixes for file
Fix Numeric usernames can start with a space issue
Adding method to trim normal, non-breaking and multibyte spaces
cs
Replace php trim method with JFilterInput TRIM filter 

Replace php trim method with JFilterInput TRIM filter to deal with non-breaking and multibyte spaces
Merge pull request #4492 from infograf768/custom_trim

[imp] Adding method to trim normal, non-breaking and multibyte spaces
Merge pull request #4489 from joomdonation/staging

Fix Numeric usernames can start with a space issue
Merge pull request #4456 from wilsonge/patch-23

[CS] Fix codestyle rules in com_contact
Merge pull request #4457 from wilsonge/patch-24

[CS] Code Style fixes for ContentHelperQuery file
[imp] Allow server-relative URLs in redirection. Fixes #4255

Suppose you have a web server using Joomla where this web server is both reachable via http://www.example.org/ and http:/example.org/. With the current implementation of the redirection plugin you need to define two redirections within the redirect manager component for every page you want to automatically redirect from its old location to its new location:

old page: http://www.example.org/path/to/old/page.html
=> new page: http://www.example.org/path/to/new/page.html

old page: http://example.org/path/to/old/page.html
=> new page: http://example.org/path/to/new/page.html

With my proposed file change it would be sufficient to define only one redirection in this case:

old server-relative page: /path/to/old/page.html
=> new server-relative page: /path/to/new/page.html

line 75: tabs removed

check redirect found whether published
[fix] Reverting [imp][25616] Delete URL-Parameter limitstart (also when its value is 0). Fixes #4488. Closes #3725 (reverted from commit 4c7cd1516acf3083d377cfcab11d2a1ecfff1d63)
This PR fixes a regression introduced by #4221

#4221 was incorrectly using str_replace() to remove the default language
code when needed. As str_replace acts globally on the subject, the
language code was removed also out of context (e.g. when part of an
alias).

With this PR I use instead preg_replace with the limit of one
substitution. due to the fact that the /language-code string to be
replaced appears just after the host name and cannot be part of it (due
to the/), this should guarantee the correct replacements of the language
code only.

I took the occasion to make a bit of clean-up by aggregating some
redundantly duplicated code
Merge pull request #4502 from smanzi/fix-#4421

Fixes for a regression introduced by #4221