summaryrefslogtreecommitdiff
path: root/forum
diff options
context:
space:
mode:
authordeva <deva>2008-12-01 10:15:51 +0000
committerdeva <deva>2008-12-01 10:15:51 +0000
commitacdf23fd17be67d0b20eac89cd4d88669885f1d7 (patch)
tree12af4c11d375aad253254eae4d0a652e13556705 /forum
parent21c12bfb323d5b078eb70c20be8ea18be081a936 (diff)
Fixed escaping problem on posting of new and edited contacts.
Diffstat (limited to 'forum')
-rw-r--r--forum/utils/addressbook.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/forum/utils/addressbook.php b/forum/utils/addressbook.php
index fb34156..20548ce 100644
--- a/forum/utils/addressbook.php
+++ b/forum/utils/addressbook.php
@@ -41,6 +41,19 @@ function form($cid,
}
+$name = stripslashes($name);
+$co = stripslashes($co);
+$address = stripslashes($address);
+$city = stripslashes($city);
+$country = stripslashes($country);
+$phone = stripslashes($phone);
+$phone2 = stripslashes($phone2);
+$email = stripslashes($email);
+$email2 = stripslashes($email2);
+$url = stripslashes($url);
+$url2 = stripslashes($url2);
+$notes = stripslashes($notes);
+
$contacts = new Contacts($DATA_DIR . "/contacts.xml");
if($action == "addgroup" && $gid) {