Update of /cvsroot/phpwiki/phpwiki/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28414/lib
Modified Files:
stdlib.php
Log Message:
add javascript_quote_string for Theme
Index: stdlib.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/stdlib.php,v
retrieving revision 1.268
retrieving revision 1.269
diff -u -2 -b -p -d -r1.268 -r1.269
--- stdlib.php 15 Sep 2007 12:28:46 -0000 1.268
+++ stdlib.php 24 Jan 2008 19:17:03 -0000 1.269
@@ -2182,5 +2182,17 @@ function is_localhost($url = false) {
}
+/**
+ * Take a string and quote it sufficiently to be passed as a Javascript
+ * string between ''s
+ */
+function javascript_quote_string($s) {
+ return str_replace("'", "\'", $s);
+}
+
+
// $Log$
+// Revision 1.269 2008/01/24 19:17:03 rurban
+// add javascript_quote_string for Theme
+//
// Revision 1.268 2007/09/15 12:28:46 rurban
// Improve multi-page format handling: abstract _DumpHtmlToDir. get rid of non-external pdf, non-global VALID_LINKS
|