Wanchai / FTPbucket

FTPbucket is a PHP script that enables you to sync your BitBucket or GitHub repository with any web-server
102 stars 22 forks source link

Repo Name Issue #4

Closed cdemetriadis closed 8 years ago

cdemetriadis commented 8 years ago

There seems to be an issue with the payload repo name. Bitbucket does not post the URL slug ("repo-name") as the repo name, rather it sends the actual name ("Repo Name"). This is a big problem when your repo name has spaces. On line 145 when trying to match both names, they'll never be the same.

Example: Slug: repo-name Actual name: Repo Name

strtolower($pl_repo_name) == strtolower($repo['repo_name'])
"repo-name" == "repo name"
Wanchai commented 8 years ago

Sorry it took me so long ;)

cdemetriadis commented 8 years ago

@Wanchai No worries. Thanks for creating the script in the first place!