Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 3 | 0.952 | abstract_class_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 58 | libraries/joomla/mail/helper.php |
2 | 3 | 72 | libraries/joomla/mail/helper.php |
| ||||
/** * Cleans any injected headers from the E-Mail body. * * @static * @param string $body E-Mail body string. * @return string Cleaned E-Mail body string. * @since 1.5 */ public static function cleanBody($body) { // Strip all E-Mail headers from a string return preg_replace("/((From:|To:|Cc:|Bcc:|Subject:|Content-type:) ([\\S]+))/","", $body); } |
| ||||
/** * Cleans any injected headers from the subject string. * * @static * @param string $subject E-Mail subject string. * @return string Cleaned E-Mail subject string. * @since 1.5 */ public static function cleanSubject($subject) { return preg_replace("/((From:|To:|Cc:|Bcc:|Content-type:) ([\\S]+))/","", $subject); } |
| |||
/** * Cleans any injected headers from the E-Mail body. * * @static * @param string $body E-Mail body string. * @return string Cleaned E-Mail body string. * @since 1.5 */ /** * Cleans any injected headers from the subject string. * * @static * @param string $subject E-Mail subject string. * @return string Cleaned E-Mail subject string. * @since 1.5 */ public static function [[#variable52215c80]]( [[#variable52215ba0]]) { // Strip all E-Mail headers from a string return preg_replace( [[#variable52215b00]],"", [[#variable52215ba0]]); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#52215c80]] | cleanBody |
1 | 2 | [[#52215c80]] | cleanSubject |
2 | 1 | [[#52215ba0]] | $body |
2 | 2 | [[#52215ba0]] | $subject |
3 | 1 | [[#52215b00]] | "/((From:|To:|Cc:|Bcc:|Subject:|Content-type:) ([\\S]+))/" |
3 | 2 | [[#52215b00]] | "/((From:|To:|Cc:|Bcc:|Content-type:) ([\\S]+))/" |