Christoph Thiede uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ct.1039.mcz
==================== Summary ====================
Name: Collections-ct.1039
Author: ct
Time: 20 May 2023, 9:33:55.67956 pm
UUID: 27d6fdaf-29ca-1740-9542-92d053fc1810
Ancestors: Collections-ct.1038
Fixes two new slips in HtmlReadWriter. Typo in #shallEvaluateResources[:] and undesired truncation of leading and trailing images.
=============== Diff against Collections-ct.1038 ===============
Item was changed:
----- Method: HtmlReadWriter>>nextText (in category 'private') -----
nextText
| text last |
count := 0.
offset := 0. "To ignore characters in the input string that are used by tags."
runStack := Stack new.
runArray := RunArray new.
string := OrderedCollection new.
"{text attributes. current start index. original start}"
runStack push: {OrderedCollection new. 1. 1}.
[stream atEnd] whileFalse: [self processNextTag].
self processRunStackTop. "Add last run."
string := String withAll: string.
runArray coalesce.
text := Text
string: string
runs: runArray.
preformattingLevel <= 0 ifFalse: [^ text].
"trim trailing blanks (leading blanks have been removed in #assureLinebreak and #assureSeparator)"
last := string size + 1.
[(last := last - 1) > lastFixedWhitespace] whileTrue: [
+ | c |
+ ((c := string at: last) isSeparator and: [c ~= Character startOfHeader])
+ ifFalse: [^ text first: last]].
- (string at: last) isSeparator ifFalse: [^ text first: last]].
^ text!
Item was changed:
----- Method: HtmlReadWriter>>shallEvaluateResources (in category 'accessing') -----
shallEvaluateResources
"Indicate whether the receiver shall evaluate resources during parsing, such as an code URI in "'<img src="code://MenuIcons squeakIcon">'." May be useful for performance or security concerns."
+ ^ self hasPermission: #evaluateResources!
- ^ self hasPermission: #downloadResources!
Item was changed:
----- Method: HtmlReadWriter>>shallEvaluateResources: (in category 'accessing') -----
shallEvaluateResources: aBoolean
"Set whether the receiver shall evaluate resources during parsing, such as an code URI in "'<img src="code://MenuIcons squeakIcon">'." May be useful for performance or security concerns."
+ ^ self setPermission: #evaluateResources to: aBoolean!
- ^ self setPermission: #downloadResources to: aBoolean!
Christoph Thiede uploaded a new version of Network to project The Trunk:
http://source.squeak.org/trunk/Network-ct.271.mcz
==================== Summary ====================
Name: Network-ct.271
Author: ct
Time: 20 May 2023, 8:27:23.43356 pm
UUID: 6ca9c70d-186d-8949-ac35-ddebd6a61844
Ancestors: Network-ct.270
Adds missing comment to MIMEContentRequest. Sorry for the noise.
=============== Diff against Network-ct.270 ===============
Item was changed:
Notification subclass: #MIMEContentRequest
instanceVariableNames: 'cid'
classVariableNames: ''
poolDictionaries: ''
category: 'Network-MIME'!
+
+ !MIMEContentRequest commentStamp: 'ct 5/18/2023 21:10' prior: 0!
+ I represent the request for a related content resource in a complex MIMEDocument according to RFC2392. While reading a document from a message, I can be signaled to access another resource from the same message. If someone knows the content for the requested CID, they can #resume: me with the relevant document. Otherwise, I will eventually return nil to the signaler and leave them to their fate to deal without the desired document.!