Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358942

Summary: Assignment rather than comparison in webdavimpl.js
Product: [ECD] Orion Reporter: John Arthorne <john.arthorne>
Component: ClientAssignee: Simon Kaegi <simon_kaegi>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: simon_kaegi
Version: unspecified   
Target Milestone: 0.3 RC1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description John Arthorne CLA 2011-09-26 13:44:05 EDT
webdavImpl.js line 197-200:

	var tail = location.substring(this._rootLocation.length);
	if (tail[tail.length - 1] = "/") {
		tail = tail.substring(0, tail.length - 1);
	}

Surely the if statement should be === rather than =
Comment 1 Simon Kaegi CLA 2011-10-07 16:38:56 EDT
Woops.Yes indeed, this has been fixed in my local copy for weeks however never pushed the change.