CloneSet2042


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4230.952abstract_class_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1458
libraries/joomla/mail/helper.php
2372
libraries/joomla/mail/helper.php
Clone Instance
1
Line Count
4
Source Line
58
Source File
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);
              }


Clone Instance
2
Line Count
3
Source Line
72
Source File
libraries/joomla/mail/helper.php

        /**
         * 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);
              }


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#52215c80]]
cleanBody 
12[[#52215c80]]
cleanSubject 
21[[#52215ba0]]
$body 
22[[#52215ba0]]
$subject 
31[[#52215b00]]
"/((From:|To:|Cc:|Bcc:|Subject:|Content-type:) ([\\S]+))/" 
32[[#52215b00]]
"/((From:|To:|Cc:|Bcc:|Content-type:) ([\\S]+))/"