E-Mail 'Code Injection Follow Up' To A Friend

Email a copy of 'Code Injection Follow Up' to a friend

* Required Field






Separate multiple entries with a comma. Maximum 5 entries.



Separate multiple entries with a comma. Maximum 5 entries.


E-Mail Image Verification

Loading ... Loading ...
1 Star2 Stars3 Stars4 Stars5 Stars (86 votes, average: 3.97 out of 5)

5 thoughts on “Code Injection Follow Up”


  1. /**
    * Add a Base url to relative links in passed content.
    *
    * By default it supports the 'src' and 'href' attributes. However this can be
    * changed via the 3rd param.
    *
    * @since 2.7.0
    *
    * @param string $content String to search for links in.
    * @param string $base The base URL to prefix to links.
    * @param array $attrs The attributes which should be processed.
    * @return string The processed content.
    */
    function links_add_base_url( $content, $base, $attrs = array('src', 'href') ) {
    $attrs = implode('|', (array)$attrs);
    return preg_replace_callback("!($attrs)=(['\"])(.+?)\\2!i",
    create_function('$m', 'return _links_add_base($m, "' . $base . '");'),
    $content);
    }

Comments are closed.