Index: /CKEditor/tests/tt/4475/1.html
===================================================================
--- /CKEditor/tests/tt/4475/1.html	(revision 6476)
+++ /CKEditor/tests/tt/4475/1.html	(revision 6476)
@@ -0,0 +1,46 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+	"http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+	<title>Ticket: #4475 Custom protected source protection</title>
+	<meta name="tags" content="editor,unit,stable">
+	<script type="text/javascript" src="../../cktester/cell.js"></script>
+	<script>
+( function()
+{
+	var ts, tc, assert = CKEDITOR.test.assert;
+
+	YAHOO.tool.TestRunner.add( ts = new CKEDITOR.test.suites.editorTestSuite(
+		{
+				editorName : 'test_editor_1',
+				config : {},
+				name :document.title
+		} ) );
+
+	ts.add( tc = new YAHOO.tool.TestCase(
+		{
+			
+			test_attribute_protection_1 : function()
+			{
+				var editor = ts.editor,
+					dataprocessor = editor.dataProcessor,
+					input = '<a href="{link page="services"}">link text</a>',
+					output = '<a data-cke-saved-href="{link page=" href="{link page=">link text</a>';
+				assert.areEqual( output, dataprocessor.toHtml( input )  );
+			},
+			
+			test_attribute_protection_2 : function()
+			{
+				var editor = ts.editor,
+					dataprocessor = editor.dataProcessor,
+					input = '<a href="<?php print $url; ?>">link text</a>',
+					output = '<a href="&lt;?php print $url; ?&gt;">link text</a>';
+				assert.areEqual( output, dataprocessor.toHtml( input )  );
+			}
+		} ) );
+} )();
+	</script>
+</head>
+<body>
+</body>
+</html>
