Changeset 3456870
- Timestamp:
- 02/09/2026 09:04:44 AM (8 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
interactivecalculator/trunk/interactivecalculator.php
r3456849 r3456870 49 49 } 50 50 51 // Sanitize the ID to allow only alphanumeric, hyphens, and underscores52 $safe_id = sanitize_key($attrs['id']);51 // Sanitize the ID to allow alphanumeric (including uppercase), hyphens, and underscores 52 $safe_id = preg_replace('/[^a-zA-Z0-9_-]/', '', $attrs['id']); 53 53 54 54 // Validate that sanitization didn't remove everything
Note: See TracChangeset
for help on using the changeset viewer.