Files
meteor/packages/webapp
Welkin Wong fcb317a31f fix(webapp): prevent truncated agent string in lookupUserAgent (#13686)
* fix(webapp): prevent truncated agent string in lookupUserAgent

In useragent-ng's lookup function implementation, there are security validations and truncation checks for useragent length.  For certain useragent use cases where the length exceeds 150 characters, premature truncation before being passed to the lookup function results in incorrect agent identification.

* test(webapp): add tests for agent identification including special user agent
2025-04-10 08:57:00 -03:00
..
2017-08-15 09:18:10 -04:00
2024-02-29 13:10:27 -03:00

webapp

Source code of released version | Source code of development version


The webapp package contains the core functionality that makes a Meteor project into a web application. It is a "value added HTTP server" that includes not just a web server, but also advanced app serving functionality like over-the-air mobile app updates and HTML5 Appcache support. For more information, see the Webapp project page.

Direct access to connect mongodb API

The webapp package is implemented using the express. webapp exposes the express API for handling requests through Webapp.handlers. See https://docs.meteor.com/#/full/webapp for more details

If you'd like direct access to the express module (for example, to use one of the middleware handlers that it defines), you can find it at WebAppInternals.NpmModules.express.module. Its version can be read at WebAppInternals.NpmModules.express.version.

The version of express used may change incompatibly from version to version of Meteor (or we may even replace it with an entirely different implementation); use at your own risk.