JENKINS-15380. Add some length checking before trying to substring.
[FIXED JENKINS-5408] Quoting Issue with JDK Installer with Windows Slave
Compare string length directly in if to get a shorter method.
German translation for permission descriptions
updated comment
Fix for JENKINS-16942

https://issues.jenkins-ci.org/browse/JENKINS-16942

PrintWriter.println() uses the OS specific line separator. When
SecretRewriter rewrites the secret file, the lines are converted to the
format of the running OS.  The test case does not account for this.
Since the test case is coded expecting line endings of \n, this fix
converts \r\n to \n before comparing.
1.509 RC inherits from 1.508
Replace \r\n with system property line.separator

Implementing change as suggested by vjuranek
Merge branch 'master' into JENKINS-16942
[maven-release-plugin] prepare release jenkins-1.509
[maven-release-plugin] prepare for next development iteration
updated changelog for release
updated changelog as a part of the release
merged back the RC branch

Conflicts:
	changelog.html
creating an RC branch
the trunk is toward 1.511-SNAPSHOT
[FIXED JENKINS-7970] JUnit result archiver should only fail builds if there are really no results - i.e. also no skipped tests.
Complete German translation
[FIXED JENKINS-17343]

Don't break Windows XP, fall back gracefully to no-op.
[FIXED JENKINS-8686]

As I mentioned in the comment, I doubt if this makes any behaviour change, but this seems like a sensible defensive measure that wouldn't hurt.