X-Git-Url: http://Server1/repobrowser/?p=kiriwrite%2F.git;a=blobdiff_plain;f=cgi-files%2Fkiriwrite.cgi;h=e131756a7aeef44ee47a3921b335ccb78d65c3b4;hp=160f0d10d5ba9eb8ef95a762765d5dbf87e5314a;hb=c50d1eaadbb17830fcaf3258dd39d7b25599ff3e;hpb=a110948e819f1beb388f504ddd758617fd6a6c1e diff --git a/cgi-files/kiriwrite.cgi b/cgi-files/kiriwrite.cgi index 160f0d1..e131756 100755 --- a/cgi-files/kiriwrite.cgi +++ b/cgi-files/kiriwrite.cgi @@ -13418,15 +13418,32 @@ sub kiriwrite_output_xml{ # Convert the password to make sure it can be read properly. - $settings_database_password =~ s/\0//g; - $settings_database_password =~ s//>/g; + if ($settings_database_password){ + + $settings_database_password =~ s/\0//g; + $settings_database_password =~ s//>/g; + + } # Convert the less than and greater than characters are there and # convert them. - $settings_imagesuri =~ s//>/g; + if ($settings_imagesuri){ + + $settings_imagesuri =~ s//>/g; + + } + + # Check if the database password value is undefined and if it is then + # set it blank. + + if (!$settings_database_password){ + + $settings_database_password = ""; + + } # Create the XML data layout.