From 7e597caa524e1da072c3df8d48fa32dc354e793f Mon Sep 17 00:00:00 2001 From: Maciej Sobaczewski Date: Thu, 24 Nov 2016 05:23:32 +0000 Subject: [PATCH] Fix line widthds and add uncommitted file. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341115 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/intl/spoofchecker.xml | 10 +++++++++- reference/intl/spoofchecker/areconfusable.xml | 16 +++++++++------- reference/intl/spoofchecker/issuspicious.xml | 5 +++-- 3 files changed, 21 insertions(+), 10 deletions(-) diff --git a/reference/intl/spoofchecker.xml b/reference/intl/spoofchecker.xml index 06fadce25d..f0d9a406fb 100644 --- a/reference/intl/spoofchecker.xml +++ b/reference/intl/spoofchecker.xml @@ -12,8 +12,16 @@
&reftitle.intro; - + This class is provided because Unicode contains large number of characters + and incorporates the varied writing systems of the world and their incorrect + usage can expose programs or systems to possible security attacks using + characters similarity. + + Provided methods alllow to check whether an individual string is likely an attempt + at confusing the reader (spoof detection), such as "pаypаl" + spelled with Cyrillic 'а' characters. +
diff --git a/reference/intl/spoofchecker/areconfusable.xml b/reference/intl/spoofchecker/areconfusable.xml index fcb139d848..5b807c25b6 100644 --- a/reference/intl/spoofchecker/areconfusable.xml +++ b/reference/intl/spoofchecker/areconfusable.xml @@ -11,8 +11,8 @@ &reftitle.description; public boolSpoofchecker::areConfusable - stringstring1 - stringstring2 + stringstr1 + stringstr2 stringerror @@ -24,7 +24,7 @@ &reftitle.parameters; - string1 + str1 First string to check. @@ -32,7 +32,7 @@ - string2 + str2 Second string to check. @@ -68,9 +68,11 @@ areConfusable('google.com', 'goog1e.com'); // true: lower l can be confused with digit one -$checker->areConfusable('google.com', 'g00g1e.com'); // false: zero digit cannot be confused with "o" letter -?> +$checker->areConfusable('google.com', 'goog1e.com'); // true +// Lower l can be confused with digit one + +$checker->areConfusable('google.com', 'g00g1e.com'); // false +// Zero (0) cannot be easily confused with "o" letter ]]> diff --git a/reference/intl/spoofchecker/issuspicious.xml b/reference/intl/spoofchecker/issuspicious.xml index a91b2ac6e3..08a90bfdac 100644 --- a/reference/intl/spoofchecker/issuspicious.xml +++ b/reference/intl/spoofchecker/issuspicious.xml @@ -61,8 +61,9 @@ $checker = new Spoofchecker(); $checker->isSuspicious('google.com'); // true: only ASCII characters -$checker->isSuspicious('Рaypal.com'); // false: the first letter is from Cyrylic, not a regular latin "P" -?> + +$checker->isSuspicious('Рaypal.com'); // false +// The first letter is from Cyrylic, not a regular latin "P" ]]>