JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Fix db_get_value after mysql->mysqli upgrade
[wfpl.git] / encode.php
index 381e681..a395a10 100644 (file)
@@ -32,6 +32,10 @@ function enc_jsdq($str) {
        return $str;
 }
 
+function enc_json($str) {
+       return json_encode($str);
+}
+
 # encode for putting within double-quotes in SQL
 function enc_sql($str) {
        $str = str_replace("\\", "\\\\", $str);