Parcourir la source

Merge branch 'master' of github.com:sharelatex/web-sharelatex

# Conflicts:
#	app/coffee/Features/Notifications/NotificationsBuilder.coffee
Shane Kilkelly il y a 10 ans
Parent
commit
1b29e0e8ec

+ 2 - 2
services/web/app/coffee/Features/Compile/CompileController.coffee

@@ -151,9 +151,9 @@ module.exports = CompileController =
 		{page, h, v} = req.query
 		{page, h, v} = req.query
 		if not page?.match(/^\d+$/)
 		if not page?.match(/^\d+$/)
 			return next(new Error("invalid page parameter"))
 			return next(new Error("invalid page parameter"))
-		if not h?.match(/^\d+\.\d+$/)
+		if not h?.match(/^-?\d+\.\d+$/)
 			return next(new Error("invalid h parameter"))
 			return next(new Error("invalid h parameter"))
-		if not v?.match(/^\d+\.\d+$/)
+		if not v?.match(/^-?\d+\.\d+$/)
 			return next(new Error("invalid v parameter"))
 			return next(new Error("invalid v parameter"))
 		# whether this request is going to a per-user container
 		# whether this request is going to a per-user container
 		CompileController._compileAsUser req, (error, user_id) ->
 		CompileController._compileAsUser req, (error, user_id) ->

+ 1 - 1
services/web/app/coffee/Features/Notifications/NotificationsBuilder.coffee

@@ -11,7 +11,7 @@ module.exports =
 			messageOpts =
 			messageOpts =
 				groupName: licence.name
 				groupName: licence.name
 				subscription_id: licence.subscription_id
 				subscription_id: licence.subscription_id
-			logger.log user_id:user._id, key: @key, "creating notification key for user"
+			logger.log user_id:user._id, key:@key, "creating notification key for user"
 			NotificationsHandler.createNotification user._id, @key, "notification_group_invite", messageOpts, null, callback
 			NotificationsHandler.createNotification user._id, @key, "notification_group_invite", messageOpts, null, callback
 
 
 		read: (callback = ->)->
 		read: (callback = ->)->