summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1b9e180)
raw | patch | inline | side by side (parent: 1b9e180)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 12 Jul 2005 08:32:54 +0000 (08:32 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 12 Jul 2005 08:32:54 +0000 (08:32 +0000) |
include/class_plugin.inc | patch | blob | history |
index fdf9cd25110a55d6e9653d4d10f35dda84709dca..1f89ad0839fdb199f58114229dfed756d758af38 100644 (file)
--- a/include/class_plugin.inc
+++ b/include/class_plugin.inc
/* Save values to object */
foreach ($this->attributes as $val){
if (chkacl ($this->acl, "$val") == "" && isset ($_POST["$val"])){
-
/* Check for modifications */
if (get_magic_quotes_gpc()) {
$data= stripcslashes($_POST["$val"]);
if ($this->$val != $data){
$this->is_modified= TRUE;
}
- $this->$val= $data;
+
+ /* Okay, how can I explain this fix ...
+ * In firefox, disabled option fields aren't selectable ... but in IE you can select these fileds.
+ * So IE posts these 'unselectable' option, with value = chr(194)
+ * chr(194) seems to be the in between the ...option> </option.. because there is no value=".." specified in these option fields
+ * This was added for W3c compliance, but now causes these ... ldap errors ...
+ * So we set these Fields to ""; a normal empty string, and we can check these values in plugin::check() again ...
+ */
+ if(isset($data[0])){
+ if($data[0] == chr(194)) {
+ $data = "";
+ }
+ }
+ $this->$val= $data;
}
}
}