Fixed code style.
Remove accidental use of | in char classes

in these cases, the | was certainly meant as an alternation, but within
a character class, it has no special meaning, so those regexes allowed a
literal | character
Fixed: Empty Content-ID causes strange result -> HTML-tags are "corrupted" (bug#10338).
Squashed commit of the following:

commit e2eff5566a6d9a1d2c23d7639d202e0c042365c2
Author: reneeb <github@renee-baecker.de>
Date:   Fri Mar 7 20:12:56 2014 +0100

    fix test case as method inserts a target attribute

commit 89cc1b15204f4b1c387fe7d659a4e49c58b8193d
Author: reneeb <github@renee-baecker.de>
Date:   Fri Mar 7 16:59:05 2014 +0100

    add test case

commit fbc2f643a617510342a0b38feb6279f8add2a973
Author: reneeb <github@renee-baecker.de>
Date:   Fri Mar 7 15:14:44 2014 +0100

    do not substitute when content-id is empty
Added UT for bug#10309.
Removed headline.
Fixed bug#10241 - ACL-Editor Bug.
Tidied.
Follow-up for for bug#10241 - make sure to handle Match settings differently.
Optimize ArticleStorageDB->ArticleAttachmentIndexRaw

by only calculating ContentPath if it is needed
Fixed bug#10283 - MouseOver on the Transitions does not show transition actions.
Small fix: don't change {TemplateFile} because it is used to select the templates that output filters need to run on.
Improved codestyle for bug#10295.
Tidied. Replaced unless by if.
Merge branch 'optimize-article-attachment-index-raw' of github.com:moritz/otrs
Fixed wrong usage of LayoutObject.
Fixed more ocurrences of wrong use of LayoutObject.
Fixed bug#10019 - Tickets via "In line action bar" cannot be moved.
Improved codestyle for bug#10295.
Added jpeg to the list of possible inline attachments when pasting images directly into CKE.
Replaces unless with if not to meet the coding guidelines.