From fdec8836e698fd195be7d9dffaa98f1ea033fe6c Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Thu, 12 Sep 2013 17:08:00 -0400 Subject: Fix handling of SVG lengths with spaces between value and unit (hopefully without breaking things this time) [Bug #1208002]. Fixed bugs: - https://launchpad.net/bugs/1208002 (bzr r12508) --- src/svg/svg-length.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/svg') diff --git a/src/svg/svg-length.cpp b/src/svg/svg-length.cpp index 05a3ef4b8..09662991b 100644 --- a/src/svg/svg-length.cpp +++ b/src/svg/svg-length.cpp @@ -334,6 +334,8 @@ So after the number, the string does not necessarily have a \0 or a unit, it mig *next = (char *) e + 1; } return 1; + } else if (g_ascii_isspace(e[0]) && g_ascii_isalpha(e[1])) { + return 0; // spaces between value and unit are not allowed } else { /* Unitless */ if (unit) { -- cgit v1.2.3