summaryrefslogtreecommitdiff
path: root/program/include/bc.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-05-29 09:42:12 +0200
committerAleksander Machniak <alec@alec.pl>2013-05-29 09:42:12 +0200
commit1d67fe13f6b0751c5ba3ab7a93f730e9ceac39cd (patch)
treee5195d4be0a63fa0b90d95cfe0792688ebd58255 /program/include/bc.php
parent56e0cabdece8565a12077becc349bb1d35a5d06e (diff)
Remove (move to bc.php) unused strip_newlines() and strip_quotes() functions
Diffstat (limited to 'program/include/bc.php')
-rw-r--r--program/include/bc.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/program/include/bc.php b/program/include/bc.php
index 0ddfb3215..447876d37 100644
--- a/program/include/bc.php
+++ b/program/include/bc.php
@@ -405,6 +405,16 @@ function enriched_to_html($data)
return rcube_enriched::to_html($data);
}
+function strip_quotes($str)
+{
+ return str_replace(array("'", '"'), '', $str);
+}
+
+function strip_newlines($str)
+{
+ return preg_replace('/[\r\n]/', '', $str);
+}
+
class rcube_html_page extends rcmail_html_page
{
}