JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.5.1
[ckeditor.git] / ckeditor_php4.php
index b4b41d6..ea9603c 100644 (file)
@@ -1,6 +1,6 @@
 <?php\r
 /*\r
-* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
 * For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -21,12 +21,12 @@ class CKEditor
         * The version of %CKEditor.\r
         * \private\r
         */\r
-       var $version = '3.5';\r
+       var $version = '3.5.1';\r
        /**\r
         * A constant string unique for each release of %CKEditor.\r
         * \private\r
         */\r
-       var $_timestamp = 'ABLC4TW';\r
+       var $_timestamp = 'B1CB4XQ';\r
 \r
        /**\r
         * URL to the %CKEditor installation directory (absolute or relative to document root).\r
@@ -80,7 +80,7 @@ class CKEditor
         * A string indicating the creation date of %CKEditor.\r
         * Do not change it unless you want to force browsers to not use previously cached version of %CKEditor.\r
         */\r
-       var $timestamp = "ABLC4TW";\r
+       var $timestamp = "B1CB4XQ";\r
        /**\r
         * An array that holds event listeners.\r
         * \private\r
@@ -500,7 +500,7 @@ class CKEditor
                }\r
                else {\r
                        /**\r
-                        * realpath — Returns canonicalized absolute pathname\r
+                        * realpath - Returns canonicalized absolute pathname\r
                         */\r
                        $realPath = realpath( './' ) ;\r
                }\r
@@ -519,7 +519,7 @@ class CKEditor
 \r
                $documentRoot = substr($realPath, 0, strlen($realPath) - strlen($selfPath));\r
                $fileUrl = substr($file, strlen($documentRoot));\r
-               $ckeditorUrl = str_replace("ckeditor_php5.php", "", $fileUrl);\r
+               $ckeditorUrl = str_replace("ckeditor_php4.php", "", $fileUrl);\r
 \r
                return $ckeditorUrl;\r
        }\r
@@ -565,6 +565,9 @@ class CKEditor
                                array('\\\\', '\\/', '\\n', '\\t', '\\r', '\\b', '\\f', '\"'));\r
 \r
                                $val = str_replace($jsonReplaces[0], $jsonReplaces[1], $val);\r
+                               if (strtoupper(substr($val, 0, 9)) == 'CKEDITOR.') {\r
+                                       return $val;\r
+                               }\r
 \r
                                return '"' . $val . '"';\r
                        }\r