Plugin Directory

Changeset 329806


Ignore:
Timestamp:
01/07/2011 05:12:51 PM (15 years ago)
Author:
simsmaster
Message:

Bug mit & in Benutzername oder Passwort behoben.


Fixed #56: Apersand (&) in Benutzername oder Passwort führt zu Problemen


Location:
wp-mantis/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-mantis/trunk/readme.txt

    r300436 r329806  
    33Tags: mantis, bug tracker, changelog, roadmap
    44Requires at least: 2.8
    5 Tested up to: 3.0.1
    6 Stable tag: 1.2.0
     5Tested up to: 3.0.4
     6Stable tag: 1.2.1
    77
    88Extended Version of "WP Mantis Table". Allows to view Changelogs, Roadmaps and Buglists from MantisBT
     
    9999== Changelog ==
    100100
     101= 1.2.1 =
     102* Bugfix: Ampersand (&) in the username or password would cause errors.
     103
    101104= 1.2 =
    102105* Addet `include_stat` parameter. It´s the oposite to exclude_stat
  • wp-mantis/trunk/wp-mantis.php

    r300436 r329806  
    385385        }
    386386       
     387        //Encode username and password, since they could contain an & (or other 'bad' chars)
     388        $mantis_user = urlencode($mantis_user);
     389        $mantis_password = urlencode($mantis_password);
     390       
    387391        //Select the correct URL
    388392        $http_body = "username=$mantis_user&password=$mantis_password&perm_login=0&secure_session=1&return=";
     
    403407       
    404408        $return_url = substr($return_url, 0, -1); //remove last &
    405         $http_body .= urlencode($return_url);
     409        $http_body .= urlencode($return_url); //return url contains &
    406410       
    407411        $fetch_url = $mantis_base_url . 'login.php'; //The url of the login.php, wich will handle the redirecting stuff
Note: See TracChangeset for help on using the changeset viewer.