mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 01:54:49 +00:00
www: fix a crash report in url_safe()
This commit is contained in:
parent
593d7525ae
commit
7f230df702
@ -1007,7 +1007,8 @@ function url_safe($format, $args = array())
|
||||
}
|
||||
|
||||
foreach ($args as $id => $arg) {
|
||||
$args[$id] = urlencode($arg);
|
||||
/* arguments could be empty, so force default */
|
||||
$args[$id] = !empty($arg) ? urlencode($arg) : '';
|
||||
}
|
||||
|
||||
return vsprintf($format, $args);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user