Title: Suspicious Code Detected
Last modified: September 3, 2020

---

# Suspicious Code Detected

 *  Resolved [marvc](https://wordpress.org/support/users/marvc/)
 * (@marvc)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/suspicious-code-detected/)
 * A malware scan produces the following alert:
 * DownloadHandler
    Suspicious function found
 * Issue Details
    We’ve uncovered suspicious code in /var/web/site/public_html/wp-
   content/plugins/download-monitor/src/DownloadHandler.php. The red highlighted
   code is the flagged code and the green is the cleaned up code. Note that these
   warnings can be false positives, so consult your developer before taking action.
 * Error
    }
 *  if ( function_exists( ‘get_magic_quotes_runtime’ ) && get_magic_quotes_runtime()){
   
   @set_magic_quotes_runtime( 0 ); }
 *  if ( function_exists( ‘apache_setenv’ ) ) {
 * Location /var/web/site/public_html/wp-content/plugins/download-monitor/src/DownloadHandler.
   php
    Size 21.15 KB Date added June 9, 2020 2:08 pm
 * Can someone confirm severity or if it’s a false positive?
 * Any responses appreciated

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Barry Kooij](https://wordpress.org/support/users/barrykooij/)
 * (@barrykooij)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/suspicious-code-detected/#post-13356671)
 * Hey there,
 * I can confirm this is a false positive. We only set this when the server supports
   it, which is in older versions. These lines are still included to support older
   versions of WordPress and PHP.
 * Please let me know if there’s anything else I can help you with.
 * Kind Regards,
 * Barry Kooij

Viewing 1 replies (of 1 total)

The topic ‘Suspicious Code Detected’ is closed to new replies.

 * ![](https://ps.w.org/download-monitor/assets/icon-256x256.png?rev=3198936)
 * [Download Monitor](https://wordpress.org/plugins/download-monitor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/download-monitor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/download-monitor/)
 * [Active Topics](https://wordpress.org/support/plugin/download-monitor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/download-monitor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/download-monitor/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Barry Kooij](https://wordpress.org/support/users/barrykooij/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/suspicious-code-detected/#post-13356671)
 * Status: resolved