[Bps-public-commit] assets branch, links, updated. 1.05-2-g53b7fab

Dustin Graves dustin at bestpractical.com
Mon Aug 17 12:51:54 EDT 2015


The branch, links has been updated
       via  53b7fabd10e10bb9b23f9d493515201b3a9389f8 (commit)
      from  4693d64a3f86a604d071a51144a972bd36d746f1 (commit)

Summary of changes:
 lib/RT/URI/asset.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 53b7fabd10e10bb9b23f9d493515201b3a9389f8
Author: Dustin Graves <dustin at bestpractical.com>
Date:   Mon Aug 17 16:51:49 2015 +0000

    wip

diff --git a/lib/RT/URI/asset.pm b/lib/RT/URI/asset.pm
index 64263ac..19fefb7 100644
--- a/lib/RT/URI/asset.pm
+++ b/lib/RT/URI/asset.pm
@@ -138,7 +138,7 @@ sub ParseURI {
 
     # canonicalize "42" and "asset:42" -> asset://example.com/42
     if ($uri =~ /^(?:\Q$scheme\E:)?(\d+)$/i) {
-        my $assetId = 0+$1;
+        my $assetId = 0+$1; # convert asset id $1 into proper number format
         $self->{'uri'} = $self->LocalURIPrefix . $assetId;
     }
     else {

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list