Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b22312
)
add enc_json
author
Jason Woofenden
<jason@jasonwoof.com>
Mon, 25 Sep 2017 01:02:28 +0000
(21:02 -0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Mon, 25 Sep 2017 01:02:28 +0000
(21:02 -0400)
encode.php
patch
|
blob
|
history
diff --git
a/encode.php
b/encode.php
index
381e681
..
a395a10
100644
(file)
--- a/
encode.php
+++ b/
encode.php
@@
-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);