summary refs log tree commit diff stats
path: root/admin/newLink.php
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-10-02 19:04:20 -0400
committerStarla Insigna <hatkirby@fourisland.com>2009-10-02 19:04:20 -0400
commit9dfba1e70866fb2bb551678f6e04b8ddfd5467e1 (patch)
tree81f4731ae7b2fa902226f084480e26411ac3ad71 /admin/newLink.php
parent00586f1e8ada8f5baa6e3013525862dccac77b4a (diff)
downloadfourisland-9dfba1e70866fb2bb551678f6e04b8ddfd5467e1.tar.gz
fourisland-9dfba1e70866fb2bb551678f6e04b8ddfd5467e1.tar.bz2
fourisland-9dfba1e70866fb2bb551678f6e04b8ddfd5467e1.zip
Fixed HTML Entites problem
When the poll escaping problem was fixed, a whole ton of other similar bugs were found which were also fixed here.

Fixes #115
Diffstat (limited to 'admin/newLink.php')
-rw-r--r--admin/newLink.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/newLink.php b/admin/newLink.php index 3f6b42c..90313bd 100644 --- a/admin/newLink.php +++ b/admin/newLink.php
@@ -80,7 +80,7 @@ if (isset($_GET['submit']))
80 $template->add('TYPEDISABLED', ' readonly="readonly"'); 80 $template->add('TYPEDISABLED', ' readonly="readonly"');
81 } 81 }
82 82
83 $template->add('TITLEVALUE', $_POST['title']); 83 $template->add('TITLEVALUE', htmlentities($_POST['title']));
84 $template->add('URLVALUE', $_POST['url']); 84 $template->add('URLVALUE', $_POST['url']);
85 $template->add(strtoupper($_POST['type']) . 'SELECTED', ' checked="checked"'); 85 $template->add(strtoupper($_POST['type']) . 'SELECTED', ' checked="checked"');
86} else { 86} else {