Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Issue: Error in AsyncFileUpload.cs : 488 [27084]

$
0
0
Using code from changeset edf1fbcb2745 (November, 2011 release) the code in AsyncFileUpload.cs:488 (ReceivedFile method) doesn't take into account extreme nesting. Can be fixed by changing existing line

if (uploadedFile.Replace("$", "_").Replace("_ctl02", "").EndsWith(sendingControlID))

to

if (uploadedFile.Replace("$", "_").Replace("_ctl02", "").EndsWith(sendingControlID.Replace("_ctl02", "")))


Comments: Can be changed even to: string tmp = uploadedFile.Replace("$", "_"); if (tmp.EndsWith("_ctl02")) tmp = tmp.Substring(0, tmp.Length - 6); if (tmp == sendingControlID) { ...

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>