diff --git a/lib/common.lib.php b/lib/common.lib.php index 8a8f473dd..d915b06aa 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -1879,7 +1879,12 @@ function convert_charset($from_charset, $to_charset, $str) function escape_trim($field) { if ($field) { - return mysql_real_escape_string(@trim($field)); + $str = mysql_real_escape_string(@trim($field)); + + if(PHP_VERSION < '5.3.0') + $str = stripslashes($str); + + return $str; } } diff --git a/plugin/okname/key/.htaccess b/plugin/okname/key/.htaccess new file mode 100644 index 000000000..05196c0b3 --- /dev/null +++ b/plugin/okname/key/.htaccess @@ -0,0 +1 @@ +# .htaccess