Hacking admin-functions.php to allow aim and mailto in Link Manager (1 post)

  1. dachristy
    Posted 10 years ago #

    The hack seems to work but There probably is a better way:

    $_POST['link_url'] = preg_match('/^(https?|ftps?|news|gopher|mailto|aim):/is', $_POST['link_url']) ? antispambot($_POST['link_url']) : 'http://' . $_POST['link_url'];

    There is also the obfucation (antispambot) function added for good measure.

    It's up and working at: http://reparsed.net

Topic Closed

This topic has been closed to new replies.

About this Topic