Support » Plugin: WP-DownloadManager » Some remote URLs are broken by wp_kses_post()

  • Resolved andrei0x309


    Ok, so I have remote links from google drive that I want to use.
    But those URLSs are pretty ugly here is an example in plain:
    As you can see this kind of URL will break if it passes through wp_kses_post().

    SO my solution to get past this problem was to edit line 54 from file download-add.php from
    ” $file = ! empty( $_POST[‘file_remote’] ) ? addslashes( wp_kses_post( trim( $_POST[‘file_remote’] ) ) ) : ”;”
    “$file = ! empty( $_POST[‘file_remote’] ) ? addslashes( ( trim( $_POST[‘file_remote’] ) ) ) : ”;”

    I think it would be great if in future updates this plugin will have an option for disabling wp_kses_post if one wishes and knows what is doing.

    Thanks for this great plugin, it was the only simple one that works with remote files that I could find.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Some remote URLs are broken by wp_kses_post()’ is closed to new replies.