mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Always fix glued URL and target (e.g. for de, ja, nl, zh, zh-TW)
This commit is contained in:
@@ -807,6 +807,9 @@ sub translated_substitute
|
||||
# The following should have no spaces, e.g. `<tt>uid=joe,dc=my-domain,dc=com</tt>`
|
||||
$translated =~ s/(<tt>)(uid[ ]*=.*?)(<\/tt>)/$1@{[&$remove_spaces($2)]}$3/g;
|
||||
|
||||
# Always fix glued URL and target (e.g. for de, ja, nl, zh, zh-TW)
|
||||
$translated =~ s/(href=)(.*?)(\/target=_)/$1$2\/ target=_/g;
|
||||
|
||||
# If original string contains ` % ` make sure output also has it
|
||||
if ($original =~ / % /) {
|
||||
$translated =~ s/[ ]*%[ ]*/ % /g;
|
||||
|
||||
Reference in New Issue
Block a user