PluginProbe
VikBooking Hotel Booking Engine & PMS / 1.8.16
VikBooking Hotel Booking Engine & PMS v1.8.16
1.8.16 1.8.15 1.8.14 1.8.13 1.8.12 1.8.11 1.8.10 1.8.9 1.8.6 1.8.7 1.8.8 trunk 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 All 37 releases
← All changes | libraries/adapter/uri/uri.php +15 -0 1.7.2 → 1.8.16 View file →
@@ -528,8 +528,23 @@
528 528 return $this->path;
529 529 }
530 530
531 531 /**
532 + * Sets the URI path string.
533 + *
534 + * @param string $path The URI path string.
535 + *
536 + * @return void
537 + *
538 + * @since 10.1.72
539 + */
540 + public function setPath($path)
541 + {
542 + // remove duplicate slashes
543 + $this->path = preg_replace("/\/{2,}/", '/', $path);
544 + }
545 +
546 + /**
532 547 * Gets the URI anchor string (everything after the "#").
533 548 *
534 549 * @return string The URI anchor string.
535 550 *