Closed GoogleCodeExporter closed 9 years ago
Looks like we need to use the latest version of SSUrlFilter class. Don't need
to migrate in this case... we can surgically replace the instance:
"Replace current urlFilter with a new one"
| app urlFilter previous current newFilter |
app := WADispatcher default handlerAt: 'ss'.
urlFilter := app filters detect: [:each | each isKindOf: (Smalltalk at: #SSUrlFilter) ] ifNone: [ nil error: 'did not find url filter' ].
newFilter := (Smalltalk at: #SSUrlFilter) new.
previous := nil.
current := app filter.
[ current = app ] whileFalse: [
current = urlFilter ifTrue: [
newFilter setNext: current next.
previous isNil
ifTrue: [ app setFilter: newFilter ]
ifFalse: [ previous setNext: newFilter ].
^ newFilter ].
previous := current.
current := current next ].
nil error: 'Did not replace url filter'
This also fixes Issue 55...
Original comment by henrichs...@gmail.com
on 23 Dec 2011 at 6:54
fix included in[1]
[1] http://code.google.com/p/squeaksource3/source/detail?r=229
Original comment by henrichs...@gmail.com
on 23 Dec 2011 at 7:00
Original comment by henrichs...@gmail.com
on 23 Dec 2011 at 10:16
Original issue reported on code.google.com by
henrichs...@gmail.com
on 23 Dec 2011 at 5:31