Merge pull request #1296 from mortenn/master
Fix invite url breakage in third party applications
This commit is contained in:
commit
6c9df498ff
|
@ -18,6 +18,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace SparkleShare {
|
namespace SparkleShare {
|
||||||
|
|
||||||
|
@ -39,6 +40,8 @@ namespace SparkleShare {
|
||||||
// Windows sometimes doesn't strip off protocol handlers
|
// Windows sometimes doesn't strip off protocol handlers
|
||||||
url = url.Replace ("sparkleshare://addProject/", "");
|
url = url.Replace ("sparkleshare://addProject/", "");
|
||||||
|
|
||||||
|
// Outlook breaks URLs
|
||||||
|
url = Regex.Replace (url, "(https?:)/([^/])", "$1//$2");
|
||||||
WebClient web_client = new WebClient ();
|
WebClient web_client = new WebClient ();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue