aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2013-05-28 18:33:55 -0400
committercash <cash.costello@gmail.com>2013-05-28 18:33:55 -0400
commit371e64beb9d47e0b64ce74d83a8587a73908f7d5 (patch)
treeae5b8041481d3f854669fff59b52c642628d2ee4
parentf766c76ba915af714bf6a8f1c71abfc9f7b5f097 (diff)
downloadelgg-371e64beb9d47e0b64ce74d83a8587a73908f7d5.tar.gz
elgg-371e64beb9d47e0b64ce74d83a8587a73908f7d5.tar.bz2
Fixes #5531 removes symbol interpretation from translit class
-rw-r--r--engine/classes/ElggTranslit.php4
-rw-r--r--engine/tests/regression/trac_bugs.php6
2 files changed, 3 insertions, 7 deletions
diff --git a/engine/classes/ElggTranslit.php b/engine/classes/ElggTranslit.php
index 4ae1d2479..b4bf87797 100644
--- a/engine/classes/ElggTranslit.php
+++ b/engine/classes/ElggTranslit.php
@@ -58,10 +58,6 @@ class ElggTranslit {
// currency
"\xE2\x82\xAC" /* € */ => ' E ',
"\xC2\xA3" /* £ */ => ' GBP ',
-
- "&" => ' and ',
- ">" => ' greater than ',
- "<" => ' less than ',
));
// remove all ASCII except 0-9a-zA-Z, hyphen, underscore, and whitespace
diff --git a/engine/tests/regression/trac_bugs.php b/engine/tests/regression/trac_bugs.php
index 7fdd51c27..051aa8d1b 100644
--- a/engine/tests/regression/trac_bugs.php
+++ b/engine/tests/regression/trac_bugs.php
@@ -208,12 +208,12 @@ class ElggCoreRegressionBugsTest extends ElggCoreUnitTest {
$cases = array(
// acid test
"B&N > Amazon, OK? <bold> 'hey!' $34"
- => "b-and-n-greater-than-amazon-ok-bold-hey-34",
+ => "bn-amazon-ok-bold-hey-34",
// hyphen, underscore and ASCII whitespace replaced by separator,
// other non-alphanumeric ASCII removed
- "a-a_a a\na\ra\ta\va!a\"a#a\$a%a&a'a(a)a*a+a,a.a/a:a;a=a?a@a[a\\a]a^a`a{a|a}a~a"
- => "a-a-a-a-a-a-aaaaaaa-and-aaaaaaaaaaaaaaaaaaaaaaa",
+ "a-a_a a\na\ra\ta\va!a\"a#a\$a%aa'a(a)a*a+a,a.a/a:a;a=a?a@a[a\\a]a^a`a{a|a}a~a"
+ => "a-a-a-a-a-a-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
// separators trimmed
"-_ hello _-"