OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../nginx/mod_rrd_graph-0.2.0-0002-remove-quotes.diff
  5. # Copyright (C) 2012 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From c7decd718567d46e565125705ee7a42f8befa7a4 Mon Sep 17 00:00:00 2001
  17. From: =?UTF-8?q?Florian=20Sch=C3=A4fer?= <florian.schaefer@gmail.com>
  18. Date: Fri, 24 Aug 2012 14:00:56 +0200
  19. Subject: [PATCH] Remove the quotation marks around strings from arguments. This prevents displaying the quotation marks in graph images.
  20. ---
  21. ngx_http_rrd_graph_module.c | 8 ++++++++
  22. 1 files changed, 8 insertions(+), 0 deletions(-)
  23. diff --git a/ngx_http_rrd_graph_module.c b/ngx_http_rrd_graph_module.c
  24. index f43cd7e..d70d207 100644
  25. --- a/ngx_http_rrd_graph_module.c
  26. +++ b/ngx_http_rrd_graph_module.c
  27. @@ -204,6 +204,14 @@ ngx_http_rrd_graph_parse_uri(ngx_http_request_t *r, int *argc_ptr,
  28. p++;
  29. }
  30. + for (i = 0; i < argc; i++) {
  31. + if (*argv[i] == '\"') {
  32. + argv[i] = argv[i] + 1;
  33. + argv_len[i] = argv_len[i] - 2;
  34. + argv[i][argv_len[i]] = '\0';
  35. + }
  36. + }
  37. +
  38. conf = ngx_http_get_module_loc_conf(r, ngx_http_rrd_graph_module);
  39. /* splice in the RRD directory root */
  40. /* TODO guard against relative paths */
  41. --
  42. 1.6.6.2