CSC510228. Avoid unsafe url concatenations.

Description

Url property for SPSite, SPWeb and SPFolder may return string with or without trailing slash.

Resolution

Use SPUtility.ConcatUrls/SPUrlUtility.CombineUrl methods instead.

Links

SPUtility.ConcatUrls Method
SPUrlUtility.CombineUrl method
Working with URL’s in SharePoint
Как писать правильный код для SharePoint

Last edited Jun 9, 2014 at 9:41 PM by dvd73, version 6

Comments

No comments yet.