summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5d842bf)
raw | patch | inline | side by side (parent: 5d842bf)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 3 Nov 2009 07:28:34 +0000 (07:28 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 3 Nov 2009 07:28:34 +0000 (07:28 +0000) |
-validate before we strip slashes...
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14724 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14724 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/functions.inc | patch | blob | history |
index d9a82de75ba20be2d811564f4e2ff67a9380bf0a..20d09e27e2d7750d3b8b21898d1a8ef0d0c789f1 100644 (file)
trigger_error("Requested POST value (".$name.") does not exists, you should add a check to prevent this message.");
return(FALSE);
}
+
if(get_magic_quotes_gpc()){
- return(stripcslashes($_POST[$name]));
+ return(stripcslashes(validate($_POST[$name])));
}else{
- return($_POST[$name]);
+ return(validate($_POST[$name]));
}
}