|
Lines 91-97
Link Here
|
| 91 |
} |
91 |
} |
| 92 |
|
92 |
|
| 93 |
public override string MapPath (string path) { |
93 |
public override string MapPath (string path) { |
| 94 |
return path.Replace (GetAppPath (), GetAppPathTranslated ()); |
94 |
string appPathTranslated = GetAppPathTranslated (); |
|
|
95 |
if (path == null || path.Length == 0) |
| 96 |
return appPathTranslated; |
| 97 |
|
| 98 |
string appPath = GetAppPath (); |
| 99 |
if (path.StartsWith (appPath)) |
| 100 |
return path.Replace (GetAppPath (), GetAppPathTranslated ()); |
| 101 |
|
| 102 |
string rest; |
| 103 |
if (path [0] == '/') |
| 104 |
rest = path.Substring (1); |
| 105 |
else |
| 106 |
rest = path; |
| 107 |
|
| 108 |
return Path.Combine (appPathTranslated, rest); |
| 95 |
} |
109 |
} |
| 96 |
|
110 |
|
| 97 |
public override string GetHttpVersion () { |
111 |
public override string GetHttpVersion () { |