Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Fixed some minor bugs.
[kiriwrite/.git] / cgi-files / kiriwrite.cgi
index 160f0d1..e131756 100755 (executable)
@@ -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/</&lt;/g;
-               $settings_database_password =~ s/>/&gt;/g;
+               if ($settings_database_password){
+
+                       $settings_database_password =~ s/\0//g;
+                       $settings_database_password =~ s/</&lt;/g;
+                       $settings_database_password =~ s/>/&gt;/g;
+
+               }
 
                # Convert the less than and greater than characters are there and
                # convert them.
 
-               $settings_imagesuri =~ s/</&lt;/g;
-               $settings_imagesuri =~ s/>/&gt;/g;
+               if ($settings_imagesuri){
+
+                       $settings_imagesuri =~ s/</&lt;/g;
+                       $settings_imagesuri =~ s/>/&gt;/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.
 
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy