You've already forked openaccounting-server
mirror of
https://github.com/openaccounting/oa-server.git
synced 2025-12-09 00:50:59 +13:00
escape % signs
This commit is contained in:
@@ -63,6 +63,9 @@ func (db *DB) Escape(sql string) string {
|
|||||||
break
|
break
|
||||||
case '\032': /* This gives problems on Win32 */
|
case '\032': /* This gives problems on Win32 */
|
||||||
escape = 'Z'
|
escape = 'Z'
|
||||||
|
break
|
||||||
|
case '%':
|
||||||
|
escape = '%'
|
||||||
}
|
}
|
||||||
|
|
||||||
if escape != 0 {
|
if escape != 0 {
|
||||||
|
|||||||
@@ -183,6 +183,7 @@ func unsubscribe(conn *websocket.Conn, key string, clientMap map[string][]*webso
|
|||||||
}
|
}
|
||||||
|
|
||||||
func unsubscribeAll(conn *websocket.Conn) {
|
func unsubscribeAll(conn *websocket.Conn) {
|
||||||
|
// TODO fix "concurrent map iteration and map write" error
|
||||||
for key, conns := range txSubscriptions {
|
for key, conns := range txSubscriptions {
|
||||||
newConns := conns[:0]
|
newConns := conns[:0]
|
||||||
for _, c := range conns {
|
for _, c := range conns {
|
||||||
|
|||||||
Reference in New Issue
Block a user