Skip to content

Commit

Permalink
Windows compatibility: remove colons from test filenames, closes #1304
Browse files Browse the repository at this point in the history
  • Loading branch information
ginatrapani committed May 1, 2012
1 parent 21a971b commit 20ac38c
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 0 deletions.
Expand Up @@ -54,6 +54,7 @@ public function apiRequest($path, $access_token, $fields=null) {
}
$FAUX_DATA_PATH = THINKUP_ROOT_PATH . $this->data_location;
$url = str_replace($this->api_domain, '', $url);
$url = str_replace(':', '', $url);
$url = str_replace('/', '_', $url);
$url = str_replace('&', '-', $url);
$url = str_replace('?', '-', $url);
Expand Down Expand Up @@ -112,6 +113,7 @@ private function rawApiRequest($path, $decode_json=true) {
$url = preg_replace('/([\?\&])access_token\=[^\?\&]+([\?\&])*/', "$1", $url);
$url = preg_replace('/[\?\&]$/', '', $url);
$url = str_replace($this->api_domain, '', $url);
$url = str_replace(':', '', $url);
$url = str_replace('/', '_', $url);
$url = str_replace('&', '-', $url);
$url = str_replace('?', '-', $url);
Expand Down

0 comments on commit 20ac38c

Please sign in to comment.