Jérémy Zurcher <jeremy@asynk.ch>
Vikram Narayanan <vikram186@gmail.com>
Seong-ho Cho (DarkCircle) <darkcircle.0426@gmail.com>
+Patryk Kaczmarek <patryk.k@samsung.com>
* Add string to atom_items for ECORE_X_ATOM_E_ILLUME_WINDOW_STATE,
ECORE_X_ATOM_E_ILLUME_WINDOW_STATE_NORMAL, ECORE_X_ATOM_E_ILLUME_WINDOW_STATE_FLOATING
+2012-09-18 Patryk Kaczmarek
+
+ * Fix escaping in ecore_file_escape_name() to handle tab and
+ newline right.
+
- Timeouts are handled correctly now (passing HTTP status 408 to
completion callback).
* ecore_evas rotation handling on some driver implementations
+ * ecore_file_escape_name() escape taba nd newline right.
Improvements:
{
if ((q - buf) > (PATH_MAX - 6)) return NULL;
if (
- (*p == ' ') || (*p == '\t') || (*p == '\n') ||
- (*p == '\\') || (*p == '\'') || (*p == '\"') ||
- (*p == ';') || (*p == '!') || (*p == '#') ||
- (*p == '$') || (*p == '%') || (*p == '&') ||
- (*p == '*') || (*p == '(') || (*p == ')') ||
- (*p == '[') || (*p == ']') || (*p == '{') ||
- (*p == '}') || (*p == '|') || (*p == '<') ||
- (*p == '>') || (*p == '?')
+ (*p == ' ') || (*p == '\\') || (*p == '\'') ||
+ (*p == '\"') || (*p == ';') || (*p == '!') ||
+ (*p == '#') || (*p == '$') || (*p == '%') ||
+ (*p == '&') || (*p == '*') || (*p == '(') ||
+ (*p == ')') || (*p == '[') || (*p == ']') ||
+ (*p == '{') || (*p == '}') || (*p == '|') ||
+ (*p == '<') || (*p == '>') || (*p == '?')
)
{
*q = '\\';
q++;
}
+ else if (*p == '\t')
+ {
+ *q = '\\';
+ q++;
+ *q = '\\';
+ q++;
+ *q = 't';
+ q++;
+ p++;
+ continue;
+ }
+ else if (*p == '\n')
+ {
+ *q = '\\';
+ q++;
+ *q = '\\';
+ q++;
+ *q = 'n';
+ q++;
+ p++;
+ continue;
+ }
+
*q = *p;
q++;
p++;