Merge pull request #242 from Quinella/hooks

Fix path issues with update hook
This commit is contained in:
Robin Vandenbrande 2014-09-01 02:12:51 +02:00
commit f7eeda46ae

View File

@ -26,7 +26,7 @@ contents = contents.replace(/(src|href)="\/(.*?)\?[a-z0-9]*?"/g, function (a, b,
hash = crypto.createHash('md5').update(fstr).digest('hex').substr(0, 8);
} catch (e) {}
return b + '="' + c + '?' + hash + '"';
return b + '="/' + c + '?' + hash + '"';
});
// add news