diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-02-26 22:02:46 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-02-26 22:02:46 +0000 |
commit | 8ae2520965d977d7ee7ff9665f9227935e7bdbd7 (patch) | |
tree | 6a69ac5814abde18646545e2f1b650d51b204dfc /includes | |
parent | f44fe74058f1bd4a4c465a3d237d58b72c42fa16 (diff) | |
download | brdo-8ae2520965d977d7ee7ff9665f9227935e7bdbd7.tar.gz brdo-8ae2520965d977d7ee7ff9665f9227935e7bdbd7.tar.bz2 |
- Removed stripslashes(). See http://lists.drupal.org/pipermail/drupal-devel/2003-February/022233.html. Patch by Ax.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/includes/common.inc b/includes/common.inc index 73295b5ca..110b69386 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -340,8 +340,6 @@ function search_form($action = 0, $query = 0, $options = 0) { function search_data() { global $keys, $edit; - $keys = check_input($keys); - if (isset($keys)) { foreach (module_list() as $name) { if (module_hook($name, "search") && (!$edit["type"] || $edit["type"][$name]) && ($result = module_invoke($name, "search", check_query($keys)))) { @@ -451,15 +449,15 @@ function referer_load() { } function check_form($text) { - return htmlspecialchars(stripslashes($text)); + return htmlspecialchars($text); } function check_query($text) { - return addslashes(stripslashes($text)); + return addslashes($text); } function check_input($text) { - return addslashes(stripslashes($text)); + return addslashes($text); } function filter($text) { @@ -511,8 +509,6 @@ function check_output($text) { // temporary: for development purpose $text = rewrite_old_urls($text); - $text = stripslashes($text); - if (strip_tags($text, "<a><i><b><u><tt><code><cite><strong><img>") == $text) { $text = nl2br($text); } |