Support » Plugins » Hacking admin-functions.php to allow aim and mailto in Link Manager

  • 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

  • The topic ‘Hacking admin-functions.php to allow aim and mailto in Link Manager’ is closed to new replies.